Results 1 to 3 of 3
  1. #1
    Bronze Lounger
    Join Date
    Sep 2007
    Posts
    1,203
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help with loop (2003)

    Hi,
    Help please, i need to loop from I2 to I5000 xlup, for each 0.00 in I delete row.
    Thanks

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Help with loop (2003)

    Something like this?

    Dim r As Long
    For r = 5000 To 2 Step -1
    If Range("I" & r) = 0 Then
    Range("I" & r).EntireRow.Delete
    End If
    Next r

  3. #3
    Bronze Lounger
    Join Date
    Sep 2007
    Posts
    1,203
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Help with loop (2003)

    Thanks Hans, spot on as always! <img src=/S/thumbup.gif border=0 alt=thumbup width=15 height=15>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •