Hello and thank you for taking my inquiry.
I am learning about VBA code and am wondering why when stepping through these lines of code I am not presented with a warning prompt. It executes successfully but no warning. The sheet is deleted.
Sub DeleteSpecificSheets()
Application.DisplayAlerts = False
Worksheets("sheet8").Delete
Application.DisplayAlerts = True
End Sub
I am learning about VBA code and am wondering why when stepping through these lines of code I am not presented with a warning prompt. It executes successfully but no warning. The sheet is deleted.
Sub DeleteSpecificSheets()
Application.DisplayAlerts = False
Worksheets("sheet8").Delete
Application.DisplayAlerts = True
End Sub