Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hell
I can catch a workbook close just fine but if someone clicks on the X button in the corner of Excel to close the whole application my macro doesn't work quite right I've got a little progress bar that I like to run when the workbook is closed in order to monitor that it deletes everything it needs to delete. But if the user pushs the application close button this userform loads but then does not run the userform_activate statement. Anyone have any ideas? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Huh? The OP wants to run some code when the user tries and quits the
application! -- Regards, Tushar Mehta, MS MVP -- Excel www.tushar-mehta.com Excel, PowerPoint, and VBA add-ins, tutorials Custom MS Office productivity solutions In article , says... application.quit |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Works fine for me (XL2002 SP1). How are you trapping the close event,
etc.? I used a Workbook_BeforeClose event procedure. It, in turn, showed a userform non-modally. The userform's activate event updated a label on the userform. After a few seconds, the _BeforeClose code unloaded the userform. -- Regards, Tushar Mehta, MS MVP -- Excel www.tushar-mehta.com Excel, PowerPoint, and VBA add-ins, tutorials Custom MS Office productivity solutions In article , says... Hello I can catch a workbook close just fine but if someone clicks on the X button in the corner of Excel to close the whole application my macro doesn't work quite right. I've got a little progress bar that I like to run when the workbook is closed in order to monitor that it deletes everything it needs to delete. But if the user pushs the application close button this userform loads but then does not run the userform_activate statement. Anyone have any ideas? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
captcure close application event | Excel Worksheet Functions | |||
Excel Red X is grayed out & wont close application how do I fix | Excel Discussion (Misc queries) | |||
Trying to close Excel Application in IE | Excel Discussion (Misc queries) | |||
Excel shoud not close all active books when clicking close button | Excel Discussion (Misc queries) | |||
Close or Exit application | Excel Programming |