I included the Word.Application object in a VB-class module:
This way, my program can start Word, merge data from my application with a Word document, etc. Very nice.
However, I need to do some cleaning up after the user quits Word. Therefore, I want to catch the Quit event with:
Unfortunately, it seems that this event is not triggered when the user shuts Word down.
Anybody knows why, and what to do about it?
Code:
Private WithEvents objw As Word.Application
However, I need to do some cleaning up after the user quits Word. Therefore, I want to catch the Quit event with:
Code:
Private Sub objw_Quit()
Anybody knows why, and what to do about it?