ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   delete tab (https://www.excelbanter.com/excel-programming/279547-delete-tab.html)

jrh

delete tab
 
what code deletes sheet1 without giving the pop up box
confirming you want to delete the tab?

Thank you.

Peo Sjoblom[_4_]

delete tab
 
Application.DisplayAlerts = False
Worksheets("sheet1").Delete
Application.DisplayAlerts = True

--

Regards,

Peo Sjoblom


"jrh" wrote in message
...
what code deletes sheet1 without giving the pop up box
confirming you want to delete the tab?

Thank you.




Ron de Bruin

delete tab
 
Try this Jrh

Application.DisplayAlerts = False
Activesheet.Delete
Application.DisplayAlerts = True

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"jrh" wrote in message ...
what code deletes sheet1 without giving the pop up box
confirming you want to delete the tab?

Thank you.





All times are GMT +1. The time now is 08:11 PM.

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