Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2005

Tip: Looking for answers? Try searching our database.

Check if a word document is already open

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vbanewbie - 06 Oct 2005 10:15 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.