Automatically delete text that is not highlighted

  • Thread starter Thread starter DocA
  • Start date Start date
D

DocA

Hi,

Is there any way to automatically delete text that is not highlighted? Can I
do this with a macro?

Thanks,

Adrian
 
I don't know about a macro, but you could do it easily
with Find and Replace. Press Ctrl + H to bring up the
Find and Replace dialog box. Click the More button (if
there is a Less button, go directly to the next step).
Click Format, Highlight. Repeat that step. Below the
Find box you should see Not Highlight. Make sure there is
nothing in the Replace box. Now click Replace All, or
Find Next and Replace one at a time.
 
Thanks Bruce, it never occurred to me to click Highlight twice, although I
did suspect I must have missed something obvious when I saw it was just a
true/false switch in the code.

Thanks for enlightening me :-)

Adrian
 
Back
Top