Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Knowing when Word closes

Status
Not open for further replies.

nician

Programmer
Jul 15, 2003
10
0
0
US
I know how to check to see if MS Word is active on a PC. Is there a way to know when it closes? Specifically, if I launch another application from VB that uses MS Word how can I capture the close or other events from MS Word so the VB program is aware of when to continue processing?
 
if you use a reference to the word object library then you can declare your object withevents!!

dim withevents myWordObject as word.application

then u can use the myWordObject_Quit event!

good luck!

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
A General Guide To Excel in VB FAQ222-3383
The Great Date Debate Thread222-368305
File Formats Galore @ or
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top