mayuko,mirabeau
Thanks, mirabeau. I am pretty sure that C is real numbers... That's what you meant, right?? I ran it then it deleted everything. I am very new to VBA, so I am so sorry I don't know what happened (;_
BrandonWLH
Thank you, Brandon. When I changed and ran, it gave me "duplicate" error. I think I am not understanding it right because I am not an English speaker, so if you could post the whole code, I would really appreciate it. Thank you again.
Sub test()
Dim rng As Range
Set rng = Worksheets("Sheet1").Range("C1")
Dim x As Integer
x = 0
Do While Not IsEmpty(rng.Offset(x, 0))
If rng.Offset(x, 0) > rng.Offset(x, 1) Then
rng.Offset(x, 0).EntireRow.Delete
Set rng = Worksheets("Sheet1").Range("C1") 'this
Else
x = x + 1
End If
Loop
End Sub