Might want to save your workbook first and say no to changes if it doesn't work the way you want.
Note. Assumes password is blank
Sub Macro1()
Dim Arr As Variant
Dim wsht As Worksheet
Dim i As Long
Arr = Array("Temp1", "work1", "work3", "payplan", "capture", """Extra (delimited)""", """Temporary (Last month)""")
For Each wsht In Worksheets
For i = 0 To UBound(Arr)
On Error Resume Next
With wsht
.Visible = True
.Unprotect
If wsht.Name = Arr(i) Then
Application.DisplayAlerts = False
wsht.Delete
Application.DisplayAlerts = True
End If
End With
Next i
Next wsht
End Sub
VBA Noob
Bookmarks