Check if a word document is already open

V

vbanewbie

Hi

Can any tell me how to check from within a visual basic 6 application if a
word document is already open.

Thanks
 
J

Jezebel

1. Get a reference to the existing instance of Word, if any. If there isn't
one, then obviously the document isn't open.

2. Iterate Word's Documents() collection to see if your document is in it.
 

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