Sub test()
Dim ws As Worksheet
Application.ScreenUpdating = False
Application.DisplayAlerts = False
For Each ws In ActiveWorkbook.Worksheets
Select Case LCase(ws.Name)
Case "итоги", "лист6", "лист9", "лист13"
Case Else: ws.Delete
End Select
Next ws
Application.DisplayAlerts = True
Application.ScreenUpdating = True
End Sub
Sub test()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
If Not Worksheets("Итоги").Range("A1:A3").Find(What:=ws.Name, LookAt:=xlWhole, SearchOrder:=xlByColumns) ws.Delete
Next ws
End Sub
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 70