This post is similar to the one I wrote for finding/replace a word/phrase within comments.
NOTE: It only works if you have some text in any header or footer in the document—if the headers/footers haven’t been used, then you do not get the option to find the text within them.
- Press Ctrl+h to open the Find and Replace window. It will open with Replace as the active tab.
- Select the Find tab. This is important as this is the only place you can specify to search only in the comments.
- Type the word/phrase you want to find in the Find field.
- Still on the Find tab, click Find In.
- Select Headers and Footers.
- Now go to the Replace tab. The word/phrase you typed in the Find tab is carried over to the Replace tab, AND the ‘find in headers and footers’ setting is carried over too, even though there’s nothing to tell you that.
- Do the find/replace as you normally would—if you think you might accidentally replace something you shouldn’t, then do Find Next followed by Replace as necessary; if you’re confident that you’ll only replace what you need to (e.g. a company name), then go ahead and click Replace All. Only the word/phrase in the comments is replaced, not anywhere else in the document.