The important thing to know is to itarate from top to bottom to avoi
problems due to the re-indexing of the worksheets by a workshee
delete
in other words if you delete worksheets(3)
worksheets(4) becomes worksheets(3)
Code
-------------------
Dim Ws As Worksheet
Dim Count As Long, L As Long
Count = ActiveWorkbook.Worksheets.Count
For Count = ActiveWorkbook.Worksheets.Count To 1 Step -1
Set Ws = ActiveWorkbook.Worksheets(Count)
If StrComp(Left$((Ws.Name), 3), "Cat", vbTextCompare) Then
Ws.Delete
End If
Nex
-------------------
I disn't test it but it should wor
--
Dnere
-----------------------------------------------------------------------
Dnereb's Profile:
http://www.excelforum.com/member.php...fo&userid=2618
View this thread:
http://www.excelforum.com/showthread.php?threadid=39756