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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Document Properties 1

Status
Not open for further replies.

da644

Programmer
May 21, 2001
159
GB
Hi Everyone.

I have a load of document, for which I have titles in a database. I need to write some code to open each document make the title in the Document Properties (File menu) the title I have in the database and then save the document again. I can do the code to open and save the document, but I can't find anyway to change the document properties title. If there a method or a properties that I need to use? Any advise would be gratefully receieved.

Best Regards

Andrew.
 
Hi da644,

The code you need is ..

Code:
[blue]ActiveDocument.BuiltInDocumentProperties("Title") = "[i]YourNewName[/i]"[/blue]

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top