VBA to add custom meta data properties 
Author Message
 VBA to add custom meta data properties

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



Tue, 22 Apr 2003 03:00:00 GMT  
 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



Wed, 23 Apr 2003 15:42:48 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Adding Custom Properties in VBA

2. Need Help: Trouble adding a custom menu pick to a custom popup menu in VBA

3. Read Diffrernt Data type of Meta Data from jpeg

4. Getting Meta Data only from ADO Data Control at Design time

5. Problems adding custom property pages

6. Writing Custom properties in VBA?

7. update to a custom field (or property) in VBA

8. how to add custom properties to folder?

9. Adding custom properties and assigning values.

10. Master 's custom properties in VBA

11. Custom Properties and VBA

12. VBA for Custom Property

 

 
Powered by phpBB® Forum Software