
VBA to add custom meta data properties
Hi Scott,
The following code will ask you for the name of the Customer and create a
custom document property named Customer in the active document and
containing the information entered by the user:
Customer = InputBox("Please Customer Name", "Name")
ActiveDocument.CustomDocumentProperties.Add _
Name:="Customer", LinkToContent:=False, Value:=Customer, _
Type:=msoPropertyTypeString
Please post any follow-up or new questions to the Newsgroups so that others
may benefit therefrom or contribute thereto.
Hope this helps,
Doug Robbins - Word MVP
Quote:
> I would like to use VBA to automatically add some custom field mete data.
> For example:
> Customer Name
> Revision Number
> I know how to do it manually: File - Properties - Custom Tab
> Then just add anything you want. But I don't know how to do it with VBA,
> can anyone help
> --Scott