Find and replace only in selection

I want to do a find and replace ONLY within a selection. I thought I was doing something wrong, but  then I found this:

https://cybertext.wordpress.com/2014/01/13/word-replace-all-doesnt-work-on-selected-text-only/

where the user notes the same thing I found. This is surely a bug (or one of the worst design decisions in Word - and that's saying a lot!). Does  anyone know a way to make Word do what it should do?

I've been moving the selection to a blank file and doing the operations there. But this gives other problems: when I replace the selection in the original document, the page headers get messed up and one or more bookmarks are deleted. A huge pain!

Steve

Answer
Answer

When you use 'Replace' or 'Find Next', instead of 'Replace All', the selection collapses to just the found text. Word makes this quite obvious, by showing what is selected. Since the original range is no longer selected, clicking on 'Replace All' applies itself from there to the end of the document. As MSKB article (https://support.microsoft.com/kb/212218) says:

"When you click Replace or Find Next, Word cancels the selection because it thinks you want to check the entire document. "

Given how long Word has worked this way, one can only reasonably conclude it's by design.

The simple solution is to take care with what you're doing - if you want to do a 'Replace All' on only a selected range, don't press 'Replace' or 'Find Next' instead. Alternatively, if you do click 'Replace' or 'Find Next', it's up to you to either re-select the preferred range before clicking 'Replace All' or continue using 'Replace' or 'Find Next' only until you reach the end of the original range.

Cheers
Paul Edstein
(Fmr MS MVP - Word)

26 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated May 10, 2024 Views 36,615 Applies to: