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.
 
Top