Deleting worksheets from Excel using VBA

On Error Resume Next 'turn off error handling
Application.DisplayAlerts = False 'turn off alerts

Worksheets("Summary").delete
Worksheets("RBI").delete
Worksheets("HR").delete
Worksheets("ERA").delete

Application.DisplayAlerts = True 'turn alerts back on
On Error GoTo 0 'turn error handling back on