Give this a try
Sub DeleteRows()
Const cColumnToSearch As String = "a" 'Change here for your needs
Dim arrStrings, i As Long, ii As Long
' In cell c1 list your strings separated by a comma. No quoates Example string1,string2,string3
arrStrings = Split(Worksheets("SomesheetName").Range("c1").Value, ",") ' Change sheet name for your needs
With Application
.ScreenUpdating = False
With ActiveSheet
For i = .Cells(Rows.Count, cColumnToSearch).End(xlUp).Row To 1 Step -1
For ii = LBound(arrStrings) To UBound(arrStrings)
If .Cells(i, cColumnToSearch).Value = arrStrings(ii) Then
.Cells(i, cColumnToSearch).EntireRow.Delete
Exit For
End If
Next ii
Next i
End With
.ScreenUpdating = True
End With
End Sub
Bookmarks