Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a worksheet that invokes an XLM4 macro function when the
Auto_Close event occurs. This event is invoked whenever the worksheet is closed or when the Excel application is terminated. On my macro sheet, the called subroutine for Auto_Close does some cleanup work (e.g.: restoring toolbar settings to previous states) and then calls the QUIT() function to terminate Excel. Excel takes care of prompting the user for worksheet saves. This works as expected for worksheet-invoked close on Excel on the Mac and Windows platforms. It works as expected for Excel-invoked close on the Mac. However, on the Windows platform suing the same code, the execution of the QUIT() function in this instance causes a macro error. I've experimented with all variants of the ERROR(FALSE) function. Unfortunately, to make it work for Excel application close on Windows, it causes the worksheet window close operation to bypass the prompt for save. Has anyone else seen this or know a way around it ? TIA. Art |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Remove all macros and objects in Excel, Save and Quit | Excel Programming | |||
Remove all macros and objects in Excel, Save and Quit | Excel Discussion (Misc queries) | |||
vba advice how 2get a input box to quit by entering the word quit+ 4 a msgbox to disp | Excel Programming | |||
Another Quit problem | Excel Programming | |||
unable to close macro using auto_close or application.quit | Excel Programming |