Help for this page

Select Code to Download


  1. or download this
     $property = "FooBar";
     $doc->CustomDocumentProperties($property)->{Value} = $text_value;
    
  2. or download this
    'If customdocument property did not exist, create it
        If Err.Number <> 0 Then
    ...
                    Type:=msoPropertyTypeString, _
                    Value:=str_content
        End If