View Single Post
 
Old 05-13-2015, 10:21 PM
gmayor's Avatar
gmayor gmayor is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,142
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

If you want to mark Pricing in Pricing Graph then you can search for Pricing Graph and mark the first word of the found text e.g.

Code:
Sub Macro1()
'Graham Mayor 14 May 2015
Dim oRng As Range
Set oRng = ActiveDocument.Range        'or Selection.Range
    With oRng.Find
        Do While .Execute(FindText:="Pricing Graph")
            oRng.Words(1).HighlightColorIndex = wdYellow
            Exit Do        'Remove if you want all 'Pricing Graph' entries to be found
        Loop
    End With
lbl_Exit:
    Exit Sub
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote