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?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Oci-One Kanubi
    Replies:
    0
    Views:
    306
    Oci-One Kanubi
    Aug 2, 2003
  2. Steveb

    Opening the properties bx

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

    Document Properties

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

    File Properties

    William Buchanan, Jun 23, 2006, in forum: Word Programming
    Replies:
    1
    Views:
    84
    Jay Freedman
    Jun 24, 2006
  5. sajin
    Replies:
    1
    Views:
    140
    Jonathan West
    Jul 12, 2006
  6. Steven H
    Replies:
    1
    Views:
    78
    Jean-Guy Marcil
    Dec 1, 2006
  7. thread
    Replies:
    2
    Views:
    218
    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:
    214
    AndreasHermle
    Feb 17, 2011
Loading...