How can I delete a row based on Columns H and I

Discussion in 'Microsoft Excel Programming' started by ICSAnalyst, Nov 15, 2004.

  1. ICSAnalyst

    ICSAnalyst Guest

    ICSAnalyst, Nov 15, 2004
    #1
    1. Advertisements

  2. Sub Macro5()
    '
    ' Macro5 Macro
    ' Macro recorded 11/15/2004 by RXVP
    '

    '
    Dim t As Integer
    Dim b As Boolean
    b = True
    While b
    t = t + 1
    If Range("a" & t).Value = "" Then
    b = False
    Else
    If (Range("h" & t).Value = "0" And Range("i" & t).Value = "0"
    Then
    Rows(t & ":" & t).Select
    Selection.Delete Shift:=xlUp
    End If
    End If
    Wend
    End Su

    --
    anilsolipura
    -----------------------------------------------------------------------
    anilsolipuram's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=1627
    View this thread: http://www.excelforum.com/showthread.php?threadid=27872
     
    anilsolipuram, Nov 15, 2004
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Annette
    Replies:
    2
    Views:
    592
    Annette
    Sep 21, 2004
  2. ICSAnalyst

    How can I delete a row based on Columns H and I

    ICSAnalyst, Nov 15, 2004, in forum: Microsoft Excel Programming
    Replies:
    1
    Views:
    170
    R.VENKATARAMAN
    Nov 16, 2004
  3. Guest
    Replies:
    4
    Views:
    1,957
    Guest
    Jan 23, 2006
  4. Kris

    Delete Row Based On Two Columns

    Kris, Jul 4, 2006, in forum: Microsoft Excel Programming
    Replies:
    8
    Views:
    168
    Guest
    Jul 6, 2006
  5. Chris Maddogz

    Retrieving Current Row,Columns & copying Format from Row,Columns a

    Chris Maddogz, May 28, 2009, in forum: Microsoft Excel Programming
    Replies:
    2
    Views:
    213
    Chris Maddogz
    May 28, 2009
Loading...

Share This Page