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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top