Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Dear group, I have a weird problem concerning the difference between before_close and auto_close. I used to use an auto_close macro which does a lot of things (calling subroutines contained in separate modules!) and tried recently to copy everything to the workbook_beforeclose-macro. Furthermore, I made a toolbar-button with has only the "thisworkbook.close" statement in it. If I close Excel through the "X" in the right-above corner, all is fine. If I close using the toolbar-button, it seems that "some" of my code in the workbook_beforeclose-macro does not run (it doesn't run the screenupdating=false setting, it doesn't unprotect my sheets etc., although this code is in it and it does run when I close Excel through the "X" in the right-above corner. I am puzzled! Any suggestions? -- phcvergouwe ------------------------------------------------------------------------ phcvergouwe's Profile: http://www.excelforum.com/member.php...o&userid=34659 View this thread: http://www.excelforum.com/showthread...hreadid=544250 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Wierd one concerning Before_Close and OnTime | Excel Discussion (Misc queries) | |||
Workbook Before_Close question | Excel Programming | |||
Before_Close problem | Excel Programming | |||
Auto_Close | Excel Programming | |||
Auto_Open & Before_Close | Excel Programming |