A
AT
Hi,
My code highlight the text in a Word document with the following snippet.
MyFoundRange.HighlightColorIndex =
Microsoft.Office.Interop.Word.WdColorIndex.wdBlue;
MyFoundRange.Font.ColorIndex =
Microsoft.Office.Interop.Word.WdColorIndex.wdWhite;
Once I go to the next item in my list, the previously highlighted text range
should go back to its original font color and its own format.
Considering my range had two words, one in custom selected blue color and
the other word in custom selected green color.
How do I do this?
My code highlight the text in a Word document with the following snippet.
MyFoundRange.HighlightColorIndex =
Microsoft.Office.Interop.Word.WdColorIndex.wdBlue;
MyFoundRange.Font.ColorIndex =
Microsoft.Office.Interop.Word.WdColorIndex.wdWhite;
Once I go to the next item in my list, the previously highlighted text range
should go back to its original font color and its own format.
Considering my range had two words, one in custom selected blue color and
the other word in custom selected green color.
How do I do this?