- or download this
$selection->Find->ClearFormatting;
$selection->Find->{Text} = $existing_string;
...
if($find_sb_item == 1) {
$intable_res = $selection->Information(wdWithInTable);
}
- or download this
Const wdColorWhite = 16777215
Const wdColorGray10 = 15132390
...
objSelection.ParagraphFormat.Shading.BackgroundPatternColor = wdColorG
+ray10
objSelection.TypeText "This is the first paragraph."
objSelection.TypeParagraph()
- or download this
$wdColorGray10 = 15132390;
$selection->ParagraphFormat->Shading ({BackgroundPatternColor => $wdCo
+lorGray10});