Project properties

M

meg99

using 2003. I want to dynamically define the project property fields
using VBA - not a file name but a title. When I select File,
Properties a dialog shows that Title, Subject, Author etc under the
summary tab. I would like to use VBA to code those. Is there a way
to do that?

meg99
 
J

John

meg99 said:
using 2003. I want to dynamically define the project property fields
using VBA - not a file name but a title. When I select File,
Properties a dialog shows that Title, Subject, Author etc under the
summary tab. I would like to use VBA to code those. Is there a way
to do that?

meg99

meg99,
You can. I'd first go to the VBA object browser and get the help file on
the DocumentProperty Object. That will give a list of all the built in
document properties (i.e. Title, Subject, Author, etc.). These are
indexed as 1, 2, 3, etc. So for example, to set the Title property of
the active file, use the following:
ActiveProject.BuiltinDocumentProperties(1)="meg99"

Hope this helps.

John
Project MVP
 
M

meg99

Thanks John,
It never occured to me to look under DocumentProperties since almost
everything else is Activeproject. something.

Thanks again

meg99
 
J

John

meg99 said:
Thanks John,
It never occured to me to look under DocumentProperties since almost
everything else is Activeproject. something.

Thanks again

meg99

meg99,
You're welcome and thanks for the feedback.

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top