Google Answers Logo
View Question
Q: Word 2000/Visual Basic: Automatic setting of document properties ( Answered 5 out of 5 stars,   0 Comments )
Subject: Word 2000/Visual Basic: Automatic setting of document properties
Category: Computers > Programming
Asked by: dischead-ga
List Price: $2.00
Posted: 09 May 2003 09:11 PDT
Expires: 08 Jun 2003 09:11 PDT
Question ID: 201612
I am trying to do some automation in Microsoft Word 2000 using Visual
Basic, and I am stumped by a deceptively simple-looking problem.  I
want to have a subroutine copy some text out of the document and
automatically put it in the document's "comments" property.  I was
able to find a BuiltinDocumentProperties method, but this is
apparently read-only.  Is there a similar way to access these
properties that allows me to set them?
Subject: Re: Word 2000/Visual Basic: Automatic setting of document properties
Answered By: hammer-ga on 09 May 2003 09:35 PDT
Rated:5 out of 5 stars
You can set this using Value.

ActiveDocument.BuiltInDocumentProperties(wdPropertyComments).Value = "My Comment"

- Hammer
dischead-ga rated this answer:5 out of 5 stars
Wow, I was closer than I thought.  I was using "Set" in front of that
and couldn't figure out why it wasn't working.  Thanks for your help.

There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  

Google Home - Answers FAQ - Terms of Service - Privacy Policy