Set properties using VBA?

Discussion in 'Word Programming' started by wal, Mar 31, 2011.

  1. wal

    wal Guest

    Word 2007

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

    Thanks.
     
    wal, Mar 31, 2011
    #1
    1. Advertisements

  2. wal

    wal Guest

    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.



    On Mar 31, 4:53 pm, wal <> wrote:
    > Word 2007
    >
    > Can the properties (Title, Subject, Keyword, etc.) at Office Button >
    > Prepare > Properties be set programmatically?  Recording a macro
    > didn't work.
    >
    > Thanks.
     
    wal, Apr 8, 2011
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.