ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Supress "delete sheets" warning (https://www.excelbanter.com/excel-programming/309930-re-supress-delete-sheets-warning.html)

Ron de Bruin

Supress "delete sheets" warning
 
Hi

Use this

Sub test()
Application.DisplayAlerts = False
ActiveSheet.Delete
Application.DisplayAlerts = True
End Sub



--
Regards Ron de Bruin
http://www.rondebruin.nl


"ConEddie" wrote in message ...
Does anyone know how to supress the "The slected sheet(s) will be permanently
delted" warning when deleting a worksheet from a wookbook?
I would like to do it in the VBA code but if that's not possible, how about
setting some workbook options?





All times are GMT +1. The time now is 07:50 AM.

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