M
Miree
I have this section of code, can I modify this to look at a range of
columns(AN - BF) and only delete line if it does not appear any of the cells
in row within tose columns?
Dim rng As Range
Dim i As Long
Set rng = ActiveSheet.Range(Cells(1, "?"), Cells(Rows.Count, "?").End(xlUp))
With rng
For i = .Rows.Count To 1 Step -1
If Not .Cells(i) = UserForm7.ComboBox5.Value Then
.Cells(i).EntireRow.Delete
End If
Next i
End With
Any help/advice is much appreciated
columns(AN - BF) and only delete line if it does not appear any of the cells
in row within tose columns?
Dim rng As Range
Dim i As Long
Set rng = ActiveSheet.Range(Cells(1, "?"), Cells(Rows.Count, "?").End(xlUp))
With rng
For i = .Rows.Count To 1 Step -1
If Not .Cells(i) = UserForm7.ComboBox5.Value Then
.Cells(i).EntireRow.Delete
End If
Next i
End With
Any help/advice is much appreciated