hi,
Sub deleteallsheetsexceptsheet4()
Dim ws As Worksheet
Application.DisplayAlerts = False
For Each ws In ThisWorkbook.Worksheets
If ws.name <> "sheet4" Then ( i also tried -- if not ws.name="Sheet4" then)
ws.Delete
End If
Next ws
Application.DisplayAlerts = True
End Sub
i think above code is correct. but , code is deleted "sheet4" also.
Bookmarks