Finding and Replacing Text
Using the Find and Replace dialog box, you can search for any text string and optionally replace it with another. In addition to performing standard text searches, you can search for and replace special items, such as paragraph characters (¶), graphics, or text formatted in a specific font. Note that simple text searches are best performed in the Navigation Pane, described at the end of this chapter.
To perform a Find:
On the Home tab, click the Replace icon in the Editing group ().
The Find and Replace dialog box appears, open to the Replace tab.
- Click the Find tab.
- Enter a search string in the Find what box (Figure 4.37).
Figure 4.37 To perform a simple search, enter a search string in the Find what box and click Find Next.
-
Optional: To set additional options and criteria, click the More >> button. The dialog box expands (Figure 4.38):
- To perform a more precise search, set options in the Search Options area. For instance, you can ensure that found text exactly matches the letter case of the search string (Match case) or specify the search direction (Search drop-down menu).
- To search for a special character such as a tab, insert it into the Find what box by choosing the character from the Special button's menu.
- To find only text with certain formatting (such as a particular font), choose an option from the Format button menu.
Figure 4.38 You can expand the dialog box to set additional Find options.
To begin the search, do one of the following:
- Click Find Next.
- Choose an option from the Find in button's menu to restrict the search to a particular document component.
Word highlights the first match, if any. Otherwise, a dialog box informs you that the search text wasn't found (Figure 4.39).
Figure 4.39 If the search string isn't found, this dialog box appears. A similar dialog box is presented after all matches have been found and viewed.
-
Do either of the following:
- To search for the next match, click Find Next. Repeat as necessary.
- When you're finished, click Cancel or click the close box (X).
To perform a Find/Replace:
On the Home tab, click the Replace icon in the Editing group ().
The Find and Replace dialog box appears, open to the Replace tab.
- Enter a search string in the Find what box and a replacement string in the Replace with box (Figure 4.40).
Figure 4.40 Enter Find what and Replace with strings.
-
Optional: To set additional options and criteria, click the More >> button. The dialog box expands (Figure 4.41).
Figure 4.41 You can expand the dialog box to enter more specific criteria.
-
Do either of the following:
- To simultaneously replace every matching instance, click Replace All.
- To selectively replace text after examining each possible match, click Find Next. Word highlights the first match, if one is found. Click Replace if you want to make the replacement, or click Find Next to skip this instance and go to the next match. Continue as necessary.
- When you're finished, click Cancel or click the close box (X).