Sub RemoveNA()
Dim i As Long
Dim tempCount As Long
lastRow = Application.WorksheetFunction.CountA(Range("A:A"))
For i = 2 To lastRow
If Cells(i, 2).Value = "North America" Then
Rows(i).Delete Shift:=xlUp
i = i - 1
Else
End If
tempCount = tempCount + 1 'Prevents endless loop
If lastRow < tempCount Then
Exit For
Else
End If
Next
End Sub
|