M
Montana DOJ Help Desk
Word 2000
I have a set of macros that rely on a document variable. I'm trying to
write a routine that will check the existing document variables to make sure
that all the required document variables exist. However, the Exists method
does not appear to be available when working with document variables.
I suppose that I could use the Add method in conjunction with On Error
Resume Next. If the document variable exists, and error will occur but the
code will continue on, and if it doesn't exist, it will be created. But it
seems like there should be a better way to do it.
How can I check for the existence of a document variable?
-- Tom
State of Montana
Department of Justice Help Desk
"Making the world a safer place."
I have a set of macros that rely on a document variable. I'm trying to
write a routine that will check the existing document variables to make sure
that all the required document variables exist. However, the Exists method
does not appear to be available when working with document variables.
I suppose that I could use the Add method in conjunction with On Error
Resume Next. If the document variable exists, and error will occur but the
code will continue on, and if it doesn't exist, it will be created. But it
seems like there should be a better way to do it.
How can I check for the existence of a document variable?
-- Tom
State of Montana
Department of Justice Help Desk
"Making the world a safer place."