I want to include macro that deletes whole row if number in B cel of that row is lower than 2000
I came with something like this but it doesnt do anything basically, runs through 500 rows with no effect
Dim x As Integer
For x = 2 To 500
If Range("B" & x).Value < 2000 Then
Range("B" & x).Select
Selection.EntireRow.Select
Selection.Delete Shift:=xlUp
Else
End If
Next
All numbers are converted
Can you guys help me with what I'am missing here ?