After an extensive search of the web I did not find a satisfying way to delete rows that do not match my criteria. What I ended up doing can be seen below. My solution was to change the color of cells that match the criteria then delete the rows that do not have the cell color. It works but there has to be a better way. Any suggestions?...JD
Code:
Sub ColorRws()
Dim z As Long
Dim x As Long
z = GetLastRowWithData
For x = z To 2 Step -1
If Left(Range("a" & x).Value, 3) = "123" Or Left(Range("a" & x).Value, 3) = "321" Then 'Rows(x & ":" & x).EntireRow.Delete
Range("a" & x).Interior.ColorIndex = 4
End If
Next x
z = GetLastRowWithData
For x = z To 2 Step -1
If Range("a" & x).Interior.ColorIndex <> 4 Then
Rows(x & ":" & x).EntireRow.Delete
End If
Next x
End Sub