Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When a workbook is closed automatically appears the
message "Do you want to save the changes?" How can I avoid this message and always answer "No"? Thank you. Liz. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Liz
In the BeforeClose event use this Private Sub Workbook_BeforeClose(Cancel As Boolean) ThisWorkbook.Saved = True End Sub Or if you close the file with code ThisWorkbook.Close False -- Regards Ron de Bruin http://www.rondebruin.nl "Liz" wrote in message ... When a workbook is closed automatically appears the message "Do you want to save the changes?" How can I avoid this message and always answer "No"? Thank you. Liz. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
AutoSave | Excel Discussion (Misc queries) | |||
Opened Autosave but when closing workbook Autosave closes itself | Excel Worksheet Functions | |||
AutoSave | Excel Discussion (Misc queries) | |||
Removing AUTOSAVE.XLS(AUTOSAVE.XLA) from VBA editor??? | Excel Programming | |||
Removing AUTOSAVE.XLS(AUTOSAVE.XLA) from VBA editor??? | Excel Programming |