Try this amended code, it is alot faster than the first example by not using the loop.
Sub DeleteRows()
Dim i As Long, LastRow As Long
limite = InputBox("Delete rows with amount lower than:", "INSERT THE AMOUNT")
Range("E1") = limite
If Range("E1") = "" Then Exit Sub
Columns("A:B").ClearContents
Range("A2", Range("C65536").End(xlUp).Offset(0, -2)) = "=COUNTIF(RC[3]:RC[3],"">="" &R1C5)"
Range("B2", Range("C65536").End(xlUp).Offset(0, -1)) = "=IF(SUMIF(C[1],RC[1],C[-1])=0,"""",1)"
LastRow = Range("B" & Rows.Count).End(xlUp).Row
With Range(Range("B2", Range("C65536").End(xlUp).Offset(0, -1)), Range("B2", Range("C65536").End(xlUp).Offset(0, -1)))
.AutoFilter Field:=1, Criteria1:="="
.EntireRow.Delete
End With
End Sub
Bookmarks