Debra,
Actually it doesn't do quite what you asked which was to check to sed "if" a
Test1 exist and "if" it does create a Test2. I cobbled together the
following that requires a Test1 to exist prior to doing anything else.
Sub ScratchMacro()
Dim oDocProp As DocumentProperty
Dim i As Long
i = 1
Dim oPropName As String
Dim oPropValue As String
Dim bExist As Boolean
oPropValue = "whatever"
bExist = False
For Each oDocProp In ActiveDocument.CustomDocumentProperties
If oDocProp.Name = "Test1" Then bExist = True
Exit For
Next
If bExist Then
For Each oDocProp In ActiveDocument.CustomDocumentProperties
If Left(oDocProp.Name, 4) = "Test" Then
i = i + 1
End If
Next
oPropName = "Test" & i
ActiveDocument.CustomDocumentProperties.Add _
Name:=oPropName, LinkToContent:=False, Value:=oPropValue, _
Type:=msoPropertyTypeString
End If
End Sub

Signature
Greg Maxey/Word MVP
A Peer in Peer to Peer Support
> To my rescue once again I see Greg!
>
[quoted text clipped - 64 lines]
>>>
>>> Debra
Debra Farnham - 06 Feb 2005 04:10 GMT
I completely overlooked the IF part when I noticed that the property had
been added. OOPS.
Thanks again Greg!
Your time and effort are HUGELY appreciated!
Deb
> Debra,
>
[quoted text clipped - 97 lines]
> >>>
> >>> Debra