This is basically the same thing I told you above recorded into a macro:
Sub RemoveRows()
'Uses a blank column to create an AUTOFILTER set of formulas to delete all unwanted
'rows all at once.
Dim LR As Long: LR = Range("A" & Rows.Count).End(xlUp).Row
Range("M1") = "key"
Range("M2:M" & LR).FormulaR1C1 = "=IF(AND(RC3>0, RC5 < RC3), ""Delete"", ""Keep"")"
With Range("M1")
.AutoFilter
.AutoFilter Field:=1, Criteria1:="Delete"
Range("M2:M" & LR).Delete xlShiftUp
.AutoFilter
.EntireColumn.ClearContents
End With
End Sub
Bookmarks