D
Debra Farnham
Hello again
I'm still using Word 2K on Win2K
How can I check to see if a custom document property with the name Test1
already exists and if so, create a new one named Test2?
In otherwords:
If customdocumentproperty named "Test1" exists Then
With ActiveDocument.CustomDocumentProperties
.Add Name:="Test2", LinkToContent:=False, Value:="Whatever", _
Type:=msoPropertyTypeString
End With
End If
The next iteration would have to check for Test2 and create a new
customdocumentproperty named Test3 .... etc etc. I'm quite certain I need a
loop but I'm a lost cause when it comes to devising loops.
I could possibly end up with several custom document properties named Test
and a number. I would just like the number to increment by one based on the
highest number already in use.
I sure hope this makes sense to someone.
Thanks in advance for any help.
Debra
I'm still using Word 2K on Win2K
How can I check to see if a custom document property with the name Test1
already exists and if so, create a new one named Test2?
In otherwords:
If customdocumentproperty named "Test1" exists Then
With ActiveDocument.CustomDocumentProperties
.Add Name:="Test2", LinkToContent:=False, Value:="Whatever", _
Type:=msoPropertyTypeString
End With
End If
The next iteration would have to check for Test2 and create a new
customdocumentproperty named Test3 .... etc etc. I'm quite certain I need a
loop but I'm a lost cause when it comes to devising loops.
I could possibly end up with several custom document properties named Test
and a number. I would just like the number to increment by one based on the
highest number already in use.
I sure hope this makes sense to someone.
Thanks in advance for any help.
Debra