Solved

Microsoft Word document information panel question

Posted on 2012-12-20
3
966 Views
Last Modified: 2013-02-13
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
0
Comment
Question by:js_sts
  • 2
3 Comments
 
LVL 59

Expert Comment

by:Chris Bottomley
ID: 38711888
Which data do you want to edit as the syntax varies according to the particular datum class, (document property, custom property etc)

Chris
0
 
LVL 59

Accepted Solution

by:
Chris Bottomley earned 255 total points
ID: 38739144
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
0
 

Author Comment

by:js_sts
ID: 38752730
sorry guys....got lost for the holidays. Let me try chris' suggestion and revert back.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now