ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Exit with out saving (https://www.excelbanter.com/excel-programming/361337-exit-out-saving.html)

Greg[_27_]

Exit with out saving
 
How do I get excel to use the application.quit function
without wanting to save before exit

Thanks

Greg



Bob Phillips[_6_]

Exit with out saving
 
ThisWorkbook.Saved = True
Application.Quit

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Greg" wrote in message
...
How do I get excel to use the application.quit function
without wanting to save before exit

Thanks

Greg





K Dales[_2_]

Exit with out saving
 
ActiveWorkbook.Close False ' False here means do not save changes
Application.Quit
--
- K Dales


"Greg" wrote:

How do I get excel to use the application.quit function
without wanting to save before exit

Thanks

Greg




MDW

Exit with out saving
 
Application.DisplayAlerts = False
Application.Quit

If DisplayAlerts is False, Excel will not prompt you to save any unsaved
data, nor will it actually save anything.

--
Hmm...they have the Internet on COMPUTERS now!


"Greg" wrote:

How do I get excel to use the application.quit function
without wanting to save before exit

Thanks

Greg




Greg[_27_]

Exit with out saving
 
Thanks Bob works great

Greg
"Bob Phillips" wrote in message
...
ThisWorkbook.Saved = True
Application.Quit

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Greg" wrote in message
...
How do I get excel to use the application.quit function
without wanting to save before exit

Thanks

Greg








All times are GMT +1. The time now is 08:49 AM.

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