ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Close excel do not save (https://www.excelbanter.com/excel-worksheet-functions/44538-close-excel-do-not-save.html)

Steved

Close excel do not save
 
Hello from Steved

I have written a macro which at the end I am asking it to close
but do not save

ok I would like the macro to close all worksheets please without saving
and finally closing excel please

How would I go about this please.

Thankyou.

JMB

One way:

Application.DisplayAlerts = False
Application.Quit


"Steved" wrote:

Hello from Steved

I have written a macro which at the end I am asking it to close
but do not save

ok I would like the macro to close all worksheets please without saving
and finally closing excel please

How would I go about this please.

Thankyou.


Steved

Thankyou JMB

"JMB" wrote:

One way:

Application.DisplayAlerts = False
Application.Quit


"Steved" wrote:

Hello from Steved

I have written a macro which at the end I am asking it to close
but do not save

ok I would like the macro to close all worksheets please without saving
and finally closing excel please

How would I go about this please.

Thankyou.



All times are GMT +1. The time now is 12:29 AM.

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