how to test if the word document is closed

F

Feng

Hi

I'm using a vb.net program to automate functions in Word. Suppose I have a variable WordDoc, which is pointed to a word document. How would I be able to test to see if the WordDoc is still open

Thanks
 
J

Jezebel

Try retrieving a property of the document and trap the error -- if it's
closed you'll get error 5825 'Object has been deleted'





Feng said:
Hi,

I'm using a vb.net program to automate functions in Word. Suppose I have
a variable WordDoc, which is pointed to a word document. How would I be
able to test to see if the WordDoc is still open?
 
Top