View Single Post
 
Old 06-03-2018, 07:22 AM
jonjozz jonjozz is offline Windows 10 Office 2016
Novice
 
Join Date: Jun 2018
Posts: 1
jonjozz is on a distinguished road
Default

Sub FindWord_and_ChangeColor()

Dim LastRow, i As Long

Selection.HomeKey Unit:=wdStory
With Selection.Find
.ClearFormatting
.Forward = True
.Wrap = wdFindContinue
.Text = "put your text here"
.Execute
End With
Do While Selection.Find.Found
Selection.Expand Unit:=wdSentence
Selection.Font.ColorIndex = wdGreen
Selection.Collapse Direction:=wdCollapseEnd
Selection.Find.Execute
Loop
End Sub
Reply With Quote