Sub Highlight()
'Application.ScreenUpdating = False 'Turn off updating for speed
Set SearchRange = ActiveDocument.Content 'Set Range to search
Options.DefaultHighlightColorIndex = wdYellow
Dim A As String 'Introduce variable for Words
'Loop will start here (not introduced yet)
With SearchRange.Find
.Text = "TEST"
.Replacement.Text = "TEST"
.Replacement.Highlight = True 'Highlight
.MatchWholeWord = True
.MatchCase = True
.ClearFormatting
.MatchWholeWord = True
.MatchCase = True
.Wrap = wdFindEnd
.MatchWildcards = False
Do While .Execute(Replace:=wdReplaceOne)
Options.DefaultHighlightColorIndex = wdTeal
Loop
End With
Options.DefaultHighlightColorIndex = wdYellow
'Loop will end here (not introduced yet)
'Application.ScreenUpdating = True
End Sub