I don't know what the programming language is in DOORS but it isn't VBA - to me it appears like it could be a Javascript although a search online shows people talking about DOORS DXL.
In terms of code, your initial test appears to return an error box if objWord is not created but it doesn't exit the script after that so if you saw the error message the rest of the code won't work.
The rest of your code doesn't align with what I know of VBA so you would need to find someone who understands the language and what these functions do. You might have more luck posting your questions to a DOORS specific forum.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|