If it is a particular sheet you want to keep but lose all the others then you could just loop through:-
Code:
Sub DelShts()
Application.DisplayAlerts = False
For Each Sheet In ActiveWorkbook.Sheets
If Sheet.Name <> "Keep Me" Then
Sheet.Delete
End If
Next
Application.DisplayAlerts = True
End Sub
Regards
Ken.................
---------------------------------------------------------------------------- It's easier to beg forgiveness than ask permission
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.