Re: find highlighted text (word 2007)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



You'll need a macro e.g.

Sub FindYellowHiLite()
Dim orng As Range
With Selection.Find
.Highlight = True
While .Execute
Set orng = Selection.Range
If orng.HighlightColorIndex = wdYellow Then
orng.Select
Exit Sub
End If
Wend
End With
End Sub

If you start with the cursor at the beginning it will select the next yellow
highlight each time the macro is run.When it runs out of yellow highlights
it will stop at the next highlight of whatever colour and go no further.
http://www.gmayor.com/installing_macro.htm


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


abc wrote:
hi all

is there a way to find highlighted text in word 2007?

Example: I have a 1,000 pages document where I highlighted text in
different colors. Now I want to sequentially find all text that I
highlighted with yellow (not with other colors). How can I do that?

thanks


.



Relevant Pages

  • Re: macro to highlight text in carrots
    ... Thanks so much for the macro. ... highlight everything inside quotation marks. ... Dim oRng As Range ... Dim myRange As Range ...
    (microsoft.public.word.vba.general)
  • Re: Macro for highlighting
    ... SendKeys) - and you can have a macro for each highlight color. ... _regardless_ of what color is currently shown in the highlight icon (i.e. the ... Sub HighLight_Red ...
    (microsoft.public.word.newusers)
  • RE: Pivottable Field items code -problems
    ... continue filtering with a single macro. ... Dim URPivot As PivotTable ... Highlight current WORK.row to YELLOW, break out of current for loop ... false negatives and so not to miss a potential match. ...
    (microsoft.public.excel.programming)
  • Re: Macro for Finding Highlighted Text
    ... .Highlight = True ... Word MVP web site http://word.mvps.org ... Steps 1 & 2 can be placed in a macro. ...
    (microsoft.public.word.vba.general)
  • Re: Highlighting specific words
    ... Greg Maxey/Word MVP ... AutoCorrect without needing to enter each one individually? ... programmer to make a macro to do this. ... automatically highlight them as they're typed or they already ...
    (microsoft.public.word.docmanagement)