Sub letr()
Dim i As Integer
For i = 3 To 25
If Cells(i, 7) <> "CA" Then
Rows(i).Delete
End If
Next i
End Sub
The above code does not delete all the results(Total 4). i have to run the code twice to delete all the 4 results. Can anyone show me what i did wrong?
F8and see results per step. Then again, best is to not delete one-by-one but in one go after you usedUnion. Here is an example. Let me know if that answers your question so we can close this thread.