Sub DeleteRowByCriteria()
Dim sh As Worksheet, arr As Variant, rngDel As Range, i As Long, j As Long
Set sh = ActiveSheet ' use here your sheet
arr = sh.UsedRange.value
For i = 1 To UBound(arr, 1)
For j = 1 To UBound(arr, 2)
If arr(i, j) = "#N/A Invalid Security" Then
If rngDel Is Nothing Then
Set rngDel = sh.Cells(i, j): Exit For
Else
Set rngDel = Union(rngDel, sh.Cells(i, j)): Exit For
End If
End If
Next
Next i
If Not rngDel Is Nothing Then rngDel.EntireRow.Delete
End Sub