Can I search for text highlighted in a specific color?

A

Annett

I am trying to search (using Find) for text highlighted in a specific color,
rather than searching for all highlighted text. The Find function does not
seem to distinguish between different highlight colors. I have a document, in
which I would like to select only the text highlighted in yellow. Is there
another way to do this?
Thanks
 
J

Jay Freedman

Annett said:
I am trying to search (using Find) for text highlighted in a specific
color, rather than searching for all highlighted text. The Find
function does not seem to distinguish between different highlight
colors. I have a document, in which I would like to select only the
text highlighted in yellow. Is there another way to do this?
Thanks

Hi Annett,

It can be done, but only with a macro. See this post for an example:
http://groups-beta.google.com/group/microsoft.public.word.vba.general/msg/2a2a2a2b2599f992?hl=en

The idea is to find text with any highlight color, and then check it to see
whether it's the color you want. If not, it continues searching for the next
highlight.
 
A

adgorn

I just posted a similar request. In looking at the site you recommend, the
solution seems incomplete. Can you verify and post the complete solution?
 
A

Al

Thank-you very much for that code - it is excellent! I too needed a macro for
changing specific highlights and this was perfect.

The only thing that the macro did not change were spaces, punctuation etc
contained within the highlighted text

Al
 

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