ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   automated delete without question (https://www.excelbanter.com/excel-programming/274252-re-automated-delete-without-question.html)

Paulw2k

automated delete without question
 
Hi,

To suppress the dialogue box put the following


Application.DisplayAlerts = False
ActiveWindow.SelectedSheets.Delete
Application.DisplayAlerts = True


For more information look in the VBE help file.

Regards
Paul


"FireatHome" wrote in message
...
In VBA I delete a sheet with this command:
"ActiveWindow.SelectedSheets.Delete"

I get a msgbox where I have to "OK" to perform the delete.

Q: How to delete without the msgbox






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

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