Hi, i have this code which is part of my macro which is suppose to delete any rows that have a value less than 1; however i have to keep running the macro to delete all the rows as it keeps leaving some rows behind. any ideas why?
For X = 1 To Y
With Range("C" & X).Select
If Range("C" & X).Value <= 1 Then
Range("C" & X).EntireRow.Delete
End If
End With
regards,
bf
For X = 1 To Y
With Range("C" & X).Select
If Range("C" & X).Value <= 1 Then
Range("C" & X).EntireRow.Delete
End If
End With
regards,
bf