Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to have an event that runs when a workbook is closed if
the save button is pressed. I was trying to run the macro with a Workbook_BeforeClose event, but this wasn't working for me. If the user hits cancel, the macro still runs. I would be fine with that if I could easily reverse the action because the cancel button was pressed. Does anyone have any suggestions. Basicially, the macro should run when actually closing the workbook. If cancel is pressed, it should not run. I tried using the workbook deactivate event, but the macro was running if I switched to another workbook. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Userform in Before close event of workbook | Excel Programming | |||
Workbook-Close StopTimer event | Excel Discussion (Misc queries) | |||
Workbook close event | Excel Programming | |||
Excel WorkBook Close Event | Excel Programming | |||
Workbook Close Event | Excel Programming |