JackDanIce
Well-known Member
- Joined
- Feb 3, 2010
- Messages
- 9,922
- Office Version
- 365
- Platform
- Windows
Hi,
I'm trying to delete sheets that have specific names or similar (e.g. delete "Sheet1" and "Sheet1 (2)") I am using the following code:
But whilst it is working without any breaks, it is not deleting the sheets are required. The above are the only sheets that need to be deleted.
Could someone explain why it's not working please?
Thanks in advance,
Jack
I'm trying to delete sheets that have specific names or similar (e.g. delete "Sheet1" and "Sheet1 (2)") I am using the following code:
Code:
For Each ws In Worksheets
Select Case ws.Name
Case "Remaining*", _
"No_Break*", _
"Listed_Instruments*", _
"Net_Zero_Difference*", _
"One_Dodge_Many_FO*", _
"Many_Dodge_One_FO*", _
"Materiality*"
ws.Delete
End Select
Next ws
Could someone explain why it's not working please?
Thanks in advance,
Jack