Здравствуйте.Есть рабочий макрос смущает,что получился большой.
Sub Del_VCE()
Dim iLastRow As Long
iLastRow = Cells(Rows.Count, 1).End(xlUp).Row
For i = iLastRow To 2 Step -1
If Cells(i, 3) Like "0" Then Rows(i).Delete
If Cells(i, 1) Like "*/*" Then Rows(i).Delete
If Cells(i, 1) Like "####-*" Then Rows(i).Delete
If Cells(i, 1) Like "###-*" Then Rows(i).Delete
If Cells(i, 1) Like "99-*" Then Rows(i).Delete
If Cells(i, 1) Like "98-*" Then Rows(i).Delete
If Cells(i, 1) Like "97-*" Then Rows(i).Delete
If Cells(i, 1) Like "96-*" Then Rows(i).Delete
If Cells(i, 1) Like "95-*" Then Rows(i).Delete
If Cells(i, 1) Like "94-*" Then Rows(i).Delete
If Cells(i, 1) Like "93-*" Then Rows(i).Delete
If Cells(i, 1) Like "92-*" Then Rows(i).Delete
If Cells(i, 1) Like "91-*" Then Rows(i).Delete
If Cells(i, 1) Like "S-*" Then Rows(i).Delete
If Cells(i, 2) Like "SPK-*" Then Rows(i).Delete
Next
End Sub
Может быть возможно значения с 91 To 99 выразить через переменную
оставив таким образом лишь одну строку вместо девяти.
Например:
If Cells(i, 1) Like "n-*" Then Rows(i).Delete
Пример
Sub Del_VCE()
Dim iLastRow As Long
iLastRow = Cells(Rows.Count, 1).End(xlUp).Row
For i = iLastRow To 2 Step -1
If Cells(i, 3) Like "0" Then Rows(i).Delete
If Cells(i, 1) Like "*/*" Then Rows(i).Delete
If Cells(i, 1) Like "####-*" Then Rows(i).Delete
If Cells(i, 1) Like "###-*" Then Rows(i).Delete
If Cells(i, 1) Like "99-*" Then Rows(i).Delete
If Cells(i, 1) Like "98-*" Then Rows(i).Delete
If Cells(i, 1) Like "97-*" Then Rows(i).Delete
If Cells(i, 1) Like "96-*" Then Rows(i).Delete
If Cells(i, 1) Like "95-*" Then Rows(i).Delete
If Cells(i, 1) Like "94-*" Then Rows(i).Delete
If Cells(i, 1) Like "93-*" Then Rows(i).Delete
If Cells(i, 1) Like "92-*" Then Rows(i).Delete
If Cells(i, 1) Like "91-*" Then Rows(i).Delete
If Cells(i, 1) Like "S-*" Then Rows(i).Delete
If Cells(i, 2) Like "SPK-*" Then Rows(i).Delete
Next
End Sub
Может быть возможно значения с 91 To 99 выразить через переменную
оставив таким образом лишь одну строку вместо девяти.
Например:
If Cells(i, 1) Like "n-*" Then Rows(i).Delete
Пример