ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to get rid of pop-up mesg box? (https://www.excelbanter.com/excel-discussion-misc-queries/4067-how-get-rid-pop-up-mesg-box.html)

none

How to get rid of pop-up mesg box?
 
I've got a macro that deletes all sheets but one. I would like to
bypass the pop-up mesg box confirming the requested deletion.

Any help is appreciated.

Thanks,
Mike

JMay

From Help:
Example
This example closes the workbook Book1.xls and doesn't prompt the user to
save changes. Any changes to Book1.xls aren't saved.

Application.DisplayAlerts = False
Workbooks("BOOK1.XLS").Close
Application.DisplayAlerts = True

HTH

"none" wrote in message ...
I've got a macro that deletes all sheets but one. I would like to
bypass the pop-up mesg box confirming the requested deletion.

Any help is appreciated.

Thanks,
Mike





All times are GMT +1. The time now is 03:52 AM.

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