T
thomas
I get an error Visual Basic "400" message when this code is ran:
Sub DeleteSheets()
Dim wks As Worksheet
Application.DisplayAlerts = False
For Each wks In Worksheets
If InStr("Bill (", wks.Name) > 0 Then wks.Delete
Next wks
Application.DisplayAlerts = True
End Sub
How can I fix this?
Thank you,
Thomas
Sub DeleteSheets()
Dim wks As Worksheet
Application.DisplayAlerts = False
For Each wks In Worksheets
If InStr("Bill (", wks.Name) > 0 Then wks.Delete
Next wks
Application.DisplayAlerts = True
End Sub
How can I fix this?
Thank you,
Thomas