Syntax
EditFindHighlight
Remarks
When followed by an EditFind or EditReplace instruction in which .Format is set to 1, specifies that the text you want to find is highlighted. Word finds any text that has been highlighted, even if different colors of highlight have been used in the same document. In Word version 6.0, EditFindHighlight is unavailable and generates an error.
Example
This example finds all instances of highlighted text in the document, removes the highlight, and applies bold formatting to that text.
EditFindClearFormatting EditReplaceClearFormatting EditFindHighlight EditReplaceFont .Bold = 1 EditReplaceNotHighlight EditReplace .Find = "", .Replace = "", .Format = 1, .ReplaceAll
See Also
EditFind, EditReplaceHighlight, Highlight, HighlightColor, ToolsOptionsRevisions