XL2000: How to Create and Use a Workbook_BeforeClose Procedure (213639)
The information in this article applies to:
This article was previously published under Q213639 SUMMARY
You can run a Microsoft Visual Basic for Applications macro (Sub procedure) every time a particular workbook is closed, by attaching the procedure to the BeforeClose event of the workbook. This article contains sample code that illustrates how to use the BeforeClose event.
REFERENCESFor more information about the BeforeClose event, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type BeforeClose Event in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbhowto kbProgramming KB213639 |
---|
|