Search within bullets

jmt356
SilverLounger
Posts: 2389
Joined: 28 Mar 2010, 01:49

Search within bullets

Post by jmt356 »

Is there a way to include numbers, letters, symbols in the numbering section of numbered or bulleted styles when executing a search in Word? At present, Word is only finding the text to the right of the number or bullet. For example, if I search for every instance of "A" in the following,

A. Sample text sample text sample text

Word only finds the instances of "a' to the right of the number "A."

If I search for "1" in:

1. Sample text sample text sample text

No item is found.
Regards,

JMT

User avatar
HansV
Administrator
Posts: 78489
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Search within bullets

Post by HansV »

Numbers and bullets are paragraph formatting, not part of the text, so you can't search for them.
Best wishes,
Hans

User avatar
StuartR
Administrator
Posts: 12606
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Search within bullets

Post by StuartR »

You could convert the document to PDF and then search the PDF file.
StuartR


User avatar
HansV
Administrator
Posts: 78489
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Search within bullets

Post by HansV »

Another option:
- Create a copy of the document (or make sure that you don't save the document after the following steps).
- Press Alt+F11, then Ctrl+G to activate the Immediate window in the Visual Basic Editor.
- Type the following line, then press Enter:

ActiveDocument.ConvertNumbersToText

- Switch back to Word. Bullets and numbering have been converted to searchable plain text.
Best wishes,
Hans