Word 2000/Visual Basic: Automatic setting of document properties
Category: Computers > Programming
Asked by: dischead-ga
List Price: $2.00
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?
Re: Word 2000/Visual Basic: Automatic setting of document properties
Answered By: hammer-ga on 09 May 2003 09:35 PDT
You can set this using Value. ActiveDocument.BuiltInDocumentProperties(wdPropertyComments).Value = "My Comment" - Hammer
rated this answer:
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.|
If you feel that you have found inappropriate content, please let us know by emailing us at email@example.com with the question ID listed above. Thank you.
|Search Google Answers for|