I need to search column E for specific values and if that row has them then it will not delete the row
The problem is that I need to search it based on if it starts with something. So in the example below if cell E98 started with "AG____ " then that row would not be deleted
The problem is that I need to search it based on if it starts with something. So in the example below if cell E98 started with "AG____ " then that row would not be deleted
Code:
Dim iLastRow As Long
Dim i As Long
iLastRow = Cells(Rows.Count, "E").End(xlUp).Row
For i = iLastRow To 2 Step -1
Select Case Cells(i, "E").Value
Case "AG*"
Case "Alpinvest*"
Case "Avenue Asia*"
Case Else
Rows(i).Delete
End Select
Next i