Private Sub Workbook_Open()
Dim ws As Worksheet
Application.DisplayAlerts = False
For Each ws In ThisWorkbook.Sheets
Select Case ws.Name
Case "Sheet1", "Fred"
ws.Delete
Case "Sheet2", "Freddy"
'other stuff
Case Else
' process any unmatched sheets
End Select
Next
Application.DisplayAlerts = True
End Sub
|