Help for this page

Select Code to Download


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