My name is Jim and I'm new to this online community seeking help on VBA and possibly helping others on Excel related issues.
I'm currently working on a VBA code that let's me delete an entire row when the revenue is within 1000 to -1000. (revenue is on column C). I tried to write the code myself but it doesn't seem to work. Can someone please point me to the right direction to where I'm wrong please?
my code is as follow:
Dim k As Long For k = Range("C" & Rows.Count).End(xlUp).Row To 1 Step -1 If Not (Range("C" & k).Value < -1000 And Range("C" & k).Value < 1000) Then Range("C" & k).EntireRow.Delete End If Next k