source sheet name as a wild card
This is how I do it:
Application.DisplayAlerts = False
Dim sh As Worksheet
For Each sh In ActiveWorkbook.Worksheets
If InStr(1, sh.Name, "Sheet1") Then
sh.Select False
Else
sh.Delete
End If
Next sh
Application.DisplayAlerts = True
Anything with Sheet1 in the name will be ignored; Sheet1, Sheet11, Sheet111,
etc.
HTH,
Ryan---
|