Hi
Can any tell me how to check from within a visual basic 6 application if a
word document is already open.
Thanks
Jonathan West - 06 Oct 2005 10:31 GMT
> Hi
>
> Can any tell me how to check from within a visual basic 6 application if a
> word document is already open.
>
> Thanks
How to check if a file has already been opened by another user
http://www.word.mvps.org/FAQs/MacrosVBA/CheckIfFileOpen.htm

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
Jezebel - 06 Oct 2005 10:39 GMT
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.
> Hi
>
> Can any tell me how to check from within a visual basic 6 application if a
> word document is already open.
>
> Thanks