More Word Find / Search tricks


Office for Mere Mortals
Your beginners guide to the secrets of Microsoft Office
Invalid email address
Tips and help for Word, Excel, PowerPoint and Outlook from Microsoft Office experts.  Give it a try. You can unsubscribe at any time.  Office for Mere Mortals has been running for over 20 years, we've never, ever revealed or sold subscriber details.  Privacy policy

Following on from our introduction ‘Find in Word’ here’s some Word Find tricks that you might find useful.

Select and Find

If you select some text in a document then use the Ctrl + F shortcut, Word will find other instances of the selection in the current document.

img 5485d291a35bf - More Word Find / Search tricks

Find blank lines

Finding and removing blank lines is a common task, especially after importing files from another format.

Firstly you need to figure out what type of blank lines they are.  There are lines created by paragraph marks or by Line Feed (called Manual Line Break in Word).

Turn on ‘Show All’ to see the underlying formatting of the document.

img 5485d2a0e0ef3 - More Word Find / Search tricks

Now look at a document to see what’s creating new lines

img 5485d2ad37064 - More Word Find / Search tricks

The two line breaks looks like this:

img 5485d2b8a3692 - More Word Find / Search tricks

Imported text will often create a blank line by having two manual line breaks in a row, as in the example above.

To make twin paragraph mark or line breaks into a single line search for two manual line breaks using the ^| code.

img 5485d2c452ee2 - More Word Find / Search tricks

To find twin paragraph marks using ^p twice:

img 5485d2d069260 - More Word Find / Search tricks

Use replace to change twin line breaks to a paragraph mark or nothing (to remove unwanted line breaks).

Finding Unicode and other Insert | Symbol characters.

Microsoft did have a fast way to find Unicode or special characters.  ^unnnn would find a Unicode character according to its Hex value, for example ^u03B8 would find the Greek Theta symbol.

That feature seems to have been removed from Word 2007 onwards.  The ^u code doesn’t give an error but we can’t get any search to work.  You’d have to wonder why such a feature was removed.

The workaround is to select the character in a document (using the Alt + X trick if necessary) then paste it into the Find field for a search.

Wildcards

The ‘Use Wildcards’ option gives you more options for varied searches.  Choose ‘Use Wildcards’ from the Advanced Find menu then look at the Special button again … it’s changed to show the wildcard options.

img 5485d2ea88c8b - More Word Find / Search tricks

Some of the options may be familiar:

?   any character in that position.   b?g will find big, bag, bug, beg and bog, in anything with a single character between a b and g.

*  any set of characters in that place.   r*n finds  ran, roon, rattan etc.

[ ] will find the characters listed inside the brackets.  b[ae]g  finds bag or beg but not bug.

A hyphen indicates a range of characters in alphabetical order.  [b-d]at finds bat and cat but not fat.

{} looks for the preceding character a certain number of times.

s{2} will find   session but not descent.

Add a comma after the number to find that number of occurrences or more.  s{2,} will find  ss, sss, ssss and so on.

8{2,5} will find the character 8 if it occurs between 2 and 5 times in a row eg, 7889 or 78889 but not 789 or 788888889.

There are other wildcard options.

Where are Regular Expressions?

The Wildcards option has been in Word for a long time but it’s really not enough in the 21st Century.   There’s a much more powerful system called Regular Expressions (RegEx) that should be available in Microsoft Office.

Sure, Regex is a lot more complicated, but there’s also a lot more help and advice (even web pages to test Regex) available than for the limited Office ‘wildcards’.

The real frustration is that MS Office already has Regular Expressions.  They’ve been available in VBA for many years but Microsoft has chosen not to make the same power available in the Find / Replace dialog boxes. Grrrr, very annoying.

Got a favorite Find trick?

Tell us your favorite tricks for finding within Office documents and we’ll share them with other Office users.

subs profile e1563205311409 - More Word Find / Search tricks
Latest news & secrets of Microsoft Office

Microsoft Office experts give you tips and help for Word, Excel, PowerPoint and Outlook.

Give it a try. You can unsubscribe at any time.  Office Watch has been running for over 20 years, we've never, ever revealed or sold subscriber details.  Privacy policy
Invalid email address