Microsoft KB Archive/212218

= WD2000: Replace Within Selection Continues to End of Document =

Article ID: 212218

Article Last Modified on 12/6/2000

-

APPLIES TO


 * Microsoft Word 2000 Standard Edition

-



This article was previously published under Q212218





SYMPTOMS
When you perform a find-and-replace operation on a selection of text, Word finds or replaces words outside of the selection beginning with the text following the selection to the end of the document. When Word reaches the end of the document you may see a message similar to the following

Word has reached the end of the document.  replacements were made. Do you want to continue searching at the beginning?

where  represents the number of replacements Word made.



CAUSE
This behavior occurs if you click Replace or Find Next in the Find and Replace dialog box (on the Edit menu, click Replace) before you click Replace All. When you click Replace or Find Next, Word cancels the selection because it thinks you want to check the entire document. This functionality works correctly if you click Replace All and do not click Find Next or Replace.



WORKAROUND
To replace one or more words in a selection, follow these steps:
 * 1) Select the text containing the word or phrase.
 * 2) On the Edit menu, click Replace.
 * 3) Type the text you want to search for in the Find what box.
 * 4) Type the text you want to use as the replacement text in the Replace with box.
 * 5) Click Replace All. Do not click Find Next or Replace.
 * 6) Click No when Word asks "Do you want to search the remainder of the document?"

Additional query words: search edit find

Keywords: kbprb kbpending KB212218

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.