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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Before closing event????

Status
Not open for further replies.

pit75

Programmer
Jun 3, 2003
15
US
Hi,
is there any way to start a macro only after I push the close button (to close a document) from word? I know that (in Excel) there is the "private sub workbook_beforeclose()" statement...I'm trying to make the same thing in word (also with "sub document_beforeclose()" statement, but it doesn't work...anyone can help me? Are there some other ways?

bye
 
Hi pit75,

Create a macro in your document called AutoClose and it should fire automatically when you close the document.

Enjoy,
Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top