Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change File properties in MS Project 2003 using VBA

Status
Not open for further replies.

technar

Technical User
Sep 6, 2011
9
AU
Hi,Can anyone help with writing a macro in VBA to change File properties in MS Project?I.e. File --> Properties --> Title, Author, Keywords etc.We need to change Keywords on a number of projects every month and I wanted to automate it but didn't have much luck.Used BuildInDocumentProperties in Excel and it worked.

ThisWorkbook.BuiltinDocumentProperties("title") = "YourTitle"

But can't make it work in MS Project.Many thanks for your help!(PS. I am an ABSOLUTE beginner in VBA)
 


hi,

I would venture to say that not very many people use MS Project, let alone program in MS Project VBA, so YOU will have to do some legwork and heavy lifting.

Have you checked in VBA help to look at the MS Project Object Model? Check out the ThisProject Object. Use the Watch Window to "discover" what you are looking for (using the ThisProject Object) faq707-4594

Post back with your questions.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
This works:
ActiveProject.BuiltinDocumentProperties("Keywords") = "Your text here
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top