ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Exiting Excel without being prompted (https://www.excelbanter.com/excel-programming/275112-exiting-excel-without-being-prompted.html)

John Flynn

Exiting Excel without being prompted
 
try this

ActiveWorkbook.Close savechanges:=False


-----Original Message-----
Hi,

Can anyone help, this has been bugging me for a while.

I'm trying to get Excel to close without prompting to

save the currently
open workbook.

I have already got a MSGBOX prompt with a "Yes" or "No"

prompt asking if the
user wishes to save
before closing. Choosing "Yes" does as it is ment to but

if the user
chooses "No", the default Excel
save workbook "Yes", "No" or "Cancel" prompt appears.

How do I stop this
happening?


Cheers

Dave


.



All times are GMT +1. The time now is 01:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com