Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word File Properties

Status
Not open for further replies.

wowski

Technical User
Jul 1, 2002
3
GB
In Word under the File menu there is Properties section which shows things like Author, Comments, Category etc. for the file. I am looking for a way to automatically populate the Summary fields using VBA, but can't seem to find any methods available to do it.(they seem to be read only). Has anybody been able to do this or is it something that is overlooked in VBA?
 
Document properties is an Offise object and in office section of VBA help there is some information.
You can manipulate built-in properties (see availible list ih help):

[tt]With ActiveDocument
.BuiltInDocumentProperties("Last Print Date") = #1/1/2003#
.BuiltInDocumentProperties("Title") = "My doc"
End With[/tt]

or add/delete custom items using CustomDocumentProperties (there is a good example in help file).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top