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

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.
Similar Threads
  1. Oci-One Kanubi
    Replies:
    0
    Views:
    342
    Oci-One Kanubi
    Aug 2, 2003
  2. Steveb

    Opening the properties bx

    Steveb, Dec 10, 2003, in forum: Word Programming
    Replies:
    1
    Views:
    121
    Howard Kaikow
    Dec 11, 2003
  3. Jeff Jones

    Document Properties

    Jeff Jones, Jan 15, 2004, in forum: Word Programming
    Replies:
    2
    Views:
    139
    Peter Kester
    Feb 2, 2004
  4. William Buchanan

    File Properties

    William Buchanan, Jun 23, 2006, in forum: Word Programming
    Replies:
    1
    Views:
    96
    Jay Freedman
    Jun 24, 2006
  5. sajin
    Replies:
    1
    Views:
    164
    Jonathan West
    Jul 12, 2006
  6. Steven H
    Replies:
    1
    Views:
    97
    Jean-Guy Marcil
    Dec 1, 2006
  7. thread
    Replies:
    2
    Views:
    244
    Jay Freedman
    Nov 9, 2007
  8. AndreasHermle

    Set range in table cell (5,2) using VBA

    AndreasHermle, Feb 17, 2011, in forum: Word Programming
    Replies:
    0
    Views:
    238
    AndreasHermle
    Feb 17, 2011
Loading...