ExcelBanter

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

Esau[_2_]

delete sheet
 
how can i write this without answering yes or no


Sub deleteSheet()
'
Application.DialogBox = False
ActiveWindow.SelectedSheets.Delete
Application.DialogBox = True

End Sub

Would like Thank You

Tom Ogilvy

delete sheet
 
Sub deleteSheet()
'
Application.DisplayAlerts = False
ActiveWindow.SelectedSheets.Delete
Application.DisplayAlerts = True

End Sub
--
Regards,
Tom Ogilvy

"Esau" wrote in message
...
how can i write this without answering yes or no


Sub deleteSheet()
'
Application.DialogBox = False
ActiveWindow.SelectedSheets.Delete
Application.DialogBox = True

End Sub

Would like Thank You





All times are GMT +1. The time now is 10:56 PM.

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