That darn custom docs property

  • Thread starter Thread starter Sparkio
  • Start date Start date
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
 
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.
 
Back
Top