E
eggpap
In a Workbook_BeforeClose event I have some data saving tasks and th
ThisWorkbook.Save statement. Since I have deleted many Excel built-i
menus, to close the wb the user must click on the Excel window Clos
button or to select the item "Save and Exit" on a custom menu.
This is my problem:
when the user clicks the close button the data saving tasks are rightl
completed and he gets the confirmation message where he must click OK t
close and exit from Excel.
The Save and Exit menu item, instead, calls the simple standard modul
subroutine:
Sub SaveAndExit
ThisWorkbook.Close
end sub
that triggers the Workbook_BeforeClose event that executes the dat
saving tasks plus the ThisWorkbook.Save statement and displays th
confirmation message, -but then shows also the Excel request o
confirmation to save the workbook-. I've debugged and seen that the w
save is correctly excuted and the workbook.saved property correctly se
to true.
Many thanks,
Emilian
ThisWorkbook.Save statement. Since I have deleted many Excel built-i
menus, to close the wb the user must click on the Excel window Clos
button or to select the item "Save and Exit" on a custom menu.
This is my problem:
when the user clicks the close button the data saving tasks are rightl
completed and he gets the confirmation message where he must click OK t
close and exit from Excel.
The Save and Exit menu item, instead, calls the simple standard modul
subroutine:
Sub SaveAndExit
ThisWorkbook.Close
end sub
that triggers the Workbook_BeforeClose event that executes the dat
saving tasks plus the ThisWorkbook.Save statement and displays th
confirmation message, -but then shows also the Excel request o
confirmation to save the workbook-. I've debugged and seen that the w
save is correctly excuted and the workbook.saved property correctly se
to true.
Many thanks,
Emilian