Custom Document Properties

J

Jim Duncan

Hi,

Does anyone know how I can access the custom document properties of a
Publisher file through code?
Word/Excel/PowerPoint all have a Document.CustomDocumentProperties
collection but I can't find any type of reference to document properties in
the Publisher object model. Any help?

Thanks,
Jim
 
R

Rohan Salt

Jim,

There is a collection called Tags in the document object that you can use to
store custom values in the document.. See the Fragment below

ActiveDocument.Tags.Add "Name", "value"
For i = 1 To ActiveDocument.Tags.Count
Debug.Print ActiveDocument.Tags(i).Name & ":" &
ActiveDocument.Tags(i).Value
Next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top