That darn custom docs property

S

Sparkio

I have created some new properties in the customs tab of the doc
properties box.

I tried using th
ActiveDocument.BuiltInDocumentProperties(wdPropertyXXXX) = XXXX

But to no avail, I tried substituting the built in wit
CutomDocumentProperties but still no. Anyone got any pointers.

I built the autonew userform for this and it works fine with th
properties on the summary tab of docs property but not so with th
others.

Please Help!!!!

Many Thanks
 
I

Ian

Hi Sparkio. Try this:

~~~~~~~~~~~~~~~~~~~~~

Public Sub WriteCustomProp(sPropName As String, sValue As String)
ActiveDocument.CustomDocumentProperties(sPropName).Value = sValue
End Sub

~~~~~~~~~~~~~~~~~~~~~

Then call it with:

~~~~~~~~~~~~~~~~~~~~~

Call WriteCustomProp(sPropName:="mypropertyname", _
sValue:="mypropertyvalue")

~~~~~~~~~~~~~~~~~~~~~


Hope that helps.
 

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