Can I search for text highlighted in a specific color? in Word General Questions  
 |  Edit my Profile  |  Help
 
     
  
 
 
 
Annett 7/7/2005 10:44 PM PST
  Question
  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
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Jay Freedman 7/8/2005 7:04 AM PST
  Answer
  Annett wrote:
> 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.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org


 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
adgorn 7/19/2006 9:29 AM PST
   
  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?
--
Alan


"Jay Freedman" wrote:

> Annett wrote:
> > 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.
>
> --
> Regards,
> Jay Freedman
> Microsoft Word MVP FAQ: http://word.mvps.org
>
>
>
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Jay Freedman 7/19/2006 12:12 PM PST
   
  After you posted here, Greg Maxey answered your request in the vba.general
newsgroup. If you can't find it in the Microsoft web site, it's on Google
Groups at
http://groups.google.com/group/microsoft.public.word.vba.general/browse_thread/thread/78e9a36fc4c40f16/8ddab4e12adb7b6c?lnk=st&q=group%3Amicrosoft.public.word.*+author%3Aadgorn&rnum=2&hl=en#8ddab4e12adb7b6c.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


adgorn wrote:
> 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?
>
>> Annett wrote:
>>> 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.
>>
>> --
>> Regards,
>> Jay Freedman
>> Microsoft Word MVP FAQ: http://word.mvps.org


 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Al 8/4/2006 8:03 AM PST
   
  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


"Jay Freedman" wrote:

> Annett wrote:
> > 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.
>
> --
> Regards,
> Jay Freedman
> Microsoft Word MVP FAQ: http://word.mvps.org
>
>
>
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
  Return to Microsoft Communities  Notify me of replies