A family of Microsoft word processing software products for creating web, email, and print documents.
On Graham Mayor's site, there is some sample code for processing all "story ranges" of a document. Below is a slight modification of that code.
The modified macro loops through all story ranges (the main body, headers, footers, text boxes) of the current document and sets the Text Highlight Color to "No color."
Sub RemoveTextHighlightColorAllDoc()
'Macro created by Stefan Blom, June 2021
'Original code by Graham Mayor at
'http://www.gmayor.com/installing_macro.htm
Dim oStory As Range
For Each oStory In ActiveDocument.StoryRanges
oStory.HighlightColorIndex = wdNoHighlight
If oStory.StoryType <> wdMainTextStory Then
While Not (oStory.NextStoryRange Is Nothing)
Set oStory = oStory.NextStoryRange
oStory.HighlightColorIndex = wdNoHighlight
Wend
End If
Next oStory
lbl_Exit:
Set oStory = Nothing
Exit Sub
End Sub