Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi!
I'm not sure what you need, but try this one. Private Sub workbook_beforeclose(cancel As Boolean) Application.DisplayAlerts = False Workbooks("YourWorkbookName").Sheets("What If").Delete Application.DisplayAlerts = True ActiveWorkbook.Save End Sub Regards, Kari J Keinonen |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to close an Addin? | Excel Discussion (Misc queries) | |||
VBA Code to kick off macro when workbook command to close is initi | Excel Discussion (Misc queries) | |||
Deleting Command Bars on close of a workbook | Excel Programming | |||
Executinh Addin Sub Menu Command | Excel Programming | |||
Addin Close problem | Excel Programming |