Set properties using VBA?

W

wal

Word 2007

Can the properties (Title, Subject, Keyword, etc.) at Office Button >
Prepare > Properties be set programmatically? Recording a macro
didn't work.

Thanks.
 
W

wal

Reply to self:

The title I chose wasn't very informative. I mean: How to set
document properties.

It's very easy, although the Help files are mostly useless. Simply:

ActiveDocument.BuiltInDocumentProperties(wdPropertyTitle) = "desired
words"

Use wdPropertyKeywords to set Tags.
 

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