Microsoft Word document information panel question

js_sts
js_sts used Ask the Experts™
on
I have a word document with the document information panel showing when it opens. I can open it, close it, and edit the meta-data. I would like to programmatically update the document panel if I could such as as the individual fields
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Chris BottomleySoftware Quality Lead Engineer
Top Expert 2011

Commented:
Which data do you want to edit as the syntax varies according to the particular datum class, (document property, custom property etc)

Chris
Software Quality Lead Engineer
Top Expert 2011
Commented:
In the abscence of a response then to enable the question closure:

To display/remove the panel:
    Application.DisplayDocumentInformationPanel = True 'False

To Add Read a custom document property:
    Read
        myVar = activedocument.CustomDocumentProperties("WhatYouWantToCallTheField").value
    Set
        activedocument.CustomDocumentProperties.Add _
    Name:="WhatYouWantToCallTheField", LinkToContent:=False, Value:="What value you want the field to have", _
    Type:=msoPropertyTypeString

To set / read a builtindocumentproperty
    Set
        activedocument.BuiltInDocumentProperties("Author") = "ChrisB"
    Read
        myVar = activedocument.BuiltInDocumentProperties("Author").value

Chris

Author

Commented:
sorry guys....got lost for the holidays. Let me try chris' suggestion and revert back.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial