BeforeClose vs Auto_Close
"arno" wrote in message
...
you have to call another macro in the beforeclose-event like
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.Run ("test")
End Sub
Inaccurate in two respects. You don't have to call a macro, you can embed
the code in the event procedure. And you don't need application run, you
could just use
Test
or
Call Test.
Application run is required to run a macro in an other workbook.
|