Hi,
I am trying to color highlight text (any color other than yellow) in a word document. Please can someone help me do it. See the code below
$doc = (@ScriptDir & "\test.doc")
$str = "123"
$Fontcolor = 0xFF0000
;~ $Highlightcolor = "Bright Green)
$oWord = ObjCreate("Word.Application")
$oWord.Documents.Open($doc)
$oWord.selection.find.ClearFormatting() ; clear previous search
while $oWord.selection
Hi,
I am trying to color highlight text (any color other than yellow) in a word document. Please can someone help me do it. See the code below
$doc = (@ScriptDir & "\test.doc")
$str = "123"
$Fontcolor = 0xFF0000
;~ $Highlightcolor = "Bright Green)
$oWord = ObjCreate("Word.Application")
$oWord.Documents.Open($doc)
$oWord.selection.find.ClearFormatting() ; clear previous search
while $oWord.selection