ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Delete sheet without warning messages (https://www.excelbanter.com/excel-programming/299938-delete-sheet-without-warning-messages.html)

Flystar[_17_]

Delete sheet without warning messages
 
I have a macro that creates a temporary sheet. Once the macro is
finished I want to delete the temporary sheet. Is there a way to
disable/turn off the deleting worksheet warning msgbox? (the selected
sheet(s) will be permanately deleted....)


---
Message posted from http://www.ExcelForum.com/


Chris

Delete sheet without warning messages
 
Application.DisplayAlerts = Fals
Sheets("MySheet").Delet
Application.DisplayAlerts = Tru

----- Flystar wrote: ----

I have a macro that creates a temporary sheet. Once the macro i
finished I want to delete the temporary sheet. Is there a way t
disable/turn off the deleting worksheet warning msgbox? (the selecte
sheet(s) will be permanately deleted....


--
Message posted from http://www.ExcelForum.com




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

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