ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Exiting a workbook (https://www.excelbanter.com/excel-programming/274510-re-exiting-workbook.html)

Dick Kusleika

Exiting a workbook
 
Dave

In addition to John's response, there is also a SaveChanges argument to the
Close method of the Workbook object that will avoid the prompt.

--
Dick Kusleika
MVP - Excel
www.dicks-clicks.com
Post all replies to the newsgroup.

"David Ralph" wrote in message
...
Hi,

I'm trying to get Excel to exit without prompting the user to save the
workbook.

I have aready constructed the IF statement using a MSGBOX, but when you
choose the NO
option the Excel then prompts you if you wish to save the workbook before
exiting.

Is there some way of turning off Excels messaging, so it just exits?


Cheers

Dave






All times are GMT +1. The time now is 07:09 PM.

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