Highlighting Found Text

by Allen Wyatt
(last updated September 1, 2018)

3

When Wayne uses the Find feature of Word to locate text in his document, he can have it highlight all instances of whatever it is that he's searching for. This is great, but Wayne would like the highlighting to be permanent, so that it doesn't go away as he makes additional edits in the document. He wonders if there is a way to search for something and apply the highlighter to all instances of what is found.

This is actually easier to do than you might, at first, presume. You cannot do it, however, simply using the Find feature—you must use Find and Replace by following these steps:

  1. Press Ctrl+H. Word displays the Replace tab of the Find and Replace dialog box.
  2. Click the More button, if it is available. Word expands the Find and Replace dialog box. (See Figure 1.)
  3. Figure 1. The Replace tab of the Find and Replace dialog box.

  4. In the Find What box, enter the text you want to find and highlight.
  5. In the Replace With box, enter ^&. This informs you Word that you want to replace whatever is found with whatever it is that you actually found (the contents of the Find What box).
  6. With the insertion point still in the Replace With box, click the Format button. Word expands some options.
  7. Click the Highlight option. The word "Highlight" should now appear under the Replace With box.
  8. Click the Replace All button. Word makes all the changes, effectively adding a permanent highlight to everything you were searching for.
  9. Click the Close button to dismiss the Find and Replace dialog box.

That's it; your highlighting is done. After these steps, the instances of what you searched for are probably highlighted in yellow. If you want a different highlight color, you might try changing the highlight color selected in the Highlight tool on the Home tab of the ribbon before going through the steps. (This may not have an effect on all versions of Word.)

It should also be noted that step 4 is technically optional—you don't need to place ^& in the Replace With box. You could, if desired, simply leave the box blank. I think it is a good "safety feature," however, to place the ^& code in the box, as this can help avoid any potential mistakes that will actually delete what you are searching for.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (1270) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Office 365.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Using Go To with a Percentage

Need to jump a certain percentage of the way through a document? You can do it using the familiar Go To tab of the Find ...

Discover More

Dynamic Headers and Footers

Do you want to change the headers and footers that appear on different pages of your printout? Here's how you can get ...

Discover More

Getting Rid of Background Color in All Tables

When working with tables (particularly those created by others), you can spend a large amount of time getting the ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More WordTips (ribbon)

Keeping a Replace Operation Displayed

The Find and Replace tool is designed to help you find and replace information as quickly as possible. However, you may ...

Discover More

Getting Rid of Trailing Spaces in Footnotes and Endnotes

The Find and Replace tool can get rid of trailing spaces in paragraphs quite nicely. If those spaces are at the end of ...

Discover More

Searching for Special Characters

When using the Find and Replace feature of Word, you can search for more than plain text. You can also search for ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is nine less than 9?

2018-09-05 03:12:52

Ken

Wayne

The reason that nothing was highlighted is probably because no color is set for highlighting. The highlight color used by Find & Replace is whatever is shown in the Text Highlight Color icon in the Font group of the Home ribbon. Thus you could highlight one set of words in one color, change the Text Highlight Color and highlight another set of words in the new color.

As for the 808 replacements in 529 words is is most likely because you are replacing characters that might appear more than once in a word.


2018-09-04 13:37:22

PJEF

Wayne, I can't read this, but when I do something like this, I just repeat what it is I want MSWord to find (and highlight, say) exactly as is in the "Replace with" box. If I want to highlight all instances of "And", I would again type in "And" and make sure to select the "match case" and "whole words" boxes. This will ONLY look for "And", and will not edit "and" nor partially edit the first part of "Android". After I repeat the exact text I want to highlight in the "Replace with" box, I click on Format / Highlight.
Was there something in this procedure that you did differently?
Patti


2018-09-01 18:37:03

Wayne C

Thanks for the info (I believe you are responding to a question I posted) but after trying the above steps twice on a Windows computer running Office 365 Business, I found that it didn't work. Something weird happened. In a document with 529 words, I got a message saying that it had made 808 replacements! No words were highlighted. I took a screenshot and will try to attach it.

(see Figure 1 below)

I see that the image is too small to read very well so I will try to attach a cropped image.

Figure 1. Highlighting Issues, Screenshot 2


This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.