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!

Word 97 VBA - Check to see if the word document has been closed

Status
Not open for further replies.

ftpdoo

Programmer
Aug 9, 2001
202
GB
Hi,

Im using word 97 to generate reports. Once a Print preview is displayed at the end of a report I'm waiting until the users presses the close button on the "print preview menu bar close button"

But how can I check for the X (close button) in the top right hand corner being clicked??

Thankx,
Jonathan
 
Hi,
When a document closes, there is a Document_Close Event. You can insert some code in the Document_Close Event to notify you that the document is closing.
Hope this helps :) Skip,
metzgsk@voughtaircraft.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top