Gavint
01-31-2008, 10:40 PM
Can any one tell me how to find a list of the valid constants for BuiltinDocumentProperties?
Help says to look in the Object Browser, but I'm not sure how to drill further into the member to find the valid constants? (perhaps this is the lesson I need :dunno )
I know a couple of the obvious ones eg wdPropertyWords as in ActiveDocument.BuiltInDocumentProperties(wdPropertyWords)
and I know how to return them all eg Dim dp As DocumentProperty
Dim tempstring As String
For Each dp In ActiveDocument.BuiltInDocumentProperties
On Error Resume Next 'reading uninitialized value causes an error
tempstring = tempstring & dp.NAME & ": " & dp.Value & vbLf
Next
'To MsgBox
MsgBox tempstring
However, this just gives a list of the "Names" and "Values", which is no help in returning a couple of specific ones.
Help says to look in the Object Browser, but I'm not sure how to drill further into the member to find the valid constants? (perhaps this is the lesson I need :dunno )
I know a couple of the obvious ones eg wdPropertyWords as in ActiveDocument.BuiltInDocumentProperties(wdPropertyWords)
and I know how to return them all eg Dim dp As DocumentProperty
Dim tempstring As String
For Each dp In ActiveDocument.BuiltInDocumentProperties
On Error Resume Next 'reading uninitialized value causes an error
tempstring = tempstring & dp.NAME & ": " & dp.Value & vbLf
Next
'To MsgBox
MsgBox tempstring
However, this just gives a list of the "Names" and "Values", which is no help in returning a couple of specific ones.