J
JoAnn
I have revised an existing template to contain a new custom doc property.
Since old documents (not containing the new property) will sometimes be
attaching to the template, I need to add code that checks the attached
document for the existence of the property & if it's not there, create it.
I know the code I need to use to add the custom document
property(ActiveDocument.CustomDocumentProperties.Add ...) , but I don't know
the best way to check for the property & tell it to execute the code if the
property is missing.
Also ... I read in another email thread that it may not be a good idea to
create the customdocument property with ActiveDocument since the property
exists in the template but not in the open doc. If the property existing in
the template but not in the active document creates a conflict, then what
should I use instead to create it?
Thanks for your help.
Since old documents (not containing the new property) will sometimes be
attaching to the template, I need to add code that checks the attached
document for the existence of the property & if it's not there, create it.
I know the code I need to use to add the custom document
property(ActiveDocument.CustomDocumentProperties.Add ...) , but I don't know
the best way to check for the property & tell it to execute the code if the
property is missing.
Also ... I read in another email thread that it may not be a good idea to
create the customdocument property with ActiveDocument since the property
exists in the template but not in the open doc. If the property existing in
the template but not in the active document creates a conflict, then what
should I use instead to create it?
Thanks for your help.