I wish to highlight every occurence of several words in a document.
Something like .......
strFind = "cat, sat, mat" ' This list may vary and is populated by a text box
With ActiveDocument.Range.Find
.ClearFormatting
For xxx = 0 To UBound(Split(strFind, ","))
.Text = Split(strFind, ",")(xxx)
.Highlight = True
Next
End With
Then every occurrence of cat, sat and mat will be highlighted
Can you help with the required code?