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.
 
Top