Automatically delete text that is not highlighted


D

DocA

Hi,

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

Thanks,

Adrian
 
Ad

Advertisements

B

Bruce

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.
 
Ad

Advertisements

D

DocA

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top