How do I use a custom property as a field in my document?

S

stephenc

I use document properties, such as "Title" and "Author" in my docuemetnt by
inserting them as fields. I have made a custom property called "Document
Number", but how do I use it as a field?

Stephenc
 
J

Jonathan West

stephenc said:
I use document properties, such as "Title" and "Author" in my docuemetnt by
inserting them as fields. I have made a custom property called "Document
Number", but how do I use it as a field?

Stephenc

use a DOCPROPERTY field referencing the name of the property


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
S

stephenc

Mr West, I have a confession to make...

I was doing all that already, but had neglected to give the field a value.
Doh!

Thus, on using the field I received the error:

"Error! Unknown document property name"

The error message is not very helpful but I should have seen my mistake.

Regards,

Stephenc
 

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