I need to delete a sheet from my workbook from VBA. I do like this:
Application.DisplayAlerts = False
Sheets("sheet3").Delete
Application.DisplayAlerts = true
but after deleting it gives me alert: can't enter break mode at this time
need that the sheet be deleted without alerting.
Application.DisplayAlerts = False
Sheets("sheet3").Delete
Application.DisplayAlerts = true
but after deleting it gives me alert: can't enter break mode at this time
need that the sheet be deleted without alerting.