+ Reply to Thread
Results 1 to 3 of 3

blank rows:program that deletes blank rows

  1. #1
    Forum Contributor
    Join Date
    06-05-2006
    Posts
    166

    blank rows:program that deletes blank rows

    I have a table of data, every few rows one is blank, is there a program that deletes blank rows?

    Thanks

  2. #2
    Bob Phillips
    Guest

    re: blank rows:program that deletes blank rows

    Sub DeleteRows()
    Dim iLastRow As Long
    Dim i As Long

    iLastRow = Cells(Rows.Count,"A").End(xlUp).Row
    For i = iLastRow to 1 Step -1
    If Application.CountA(Rows(i)) = 0 Then
    Rows(i).Delete
    End If
    Next i
    End Sub

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "phil2006" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I have a table of data, every few rows one is blank, is there a program
    > that deletes blank rows?
    >
    > Thanks
    >
    >
    > --
    > phil2006
    > ------------------------------------------------------------------------
    > phil2006's Profile:

    http://www.excelforum.com/member.php...o&userid=35092
    > View this thread: http://www.excelforum.com/showthread...hreadid=553145
    >




  3. #3
    Gord Dibben
    Guest

    re: blank rows:program that deletes blank rows

    Manually..........

    Select Column A

    F5>Special>Blanks>OK

    Edit>Delete>Entire Rows>OK


    Gord Dibben MS Excel MVP

    On Mon, 19 Jun 2006 04:52:44 -0500, phil2006
    <[email protected]> wrote:

    >
    >I have a table of data, every few rows one is blank, is there a program
    >that deletes blank rows?
    >
    >Thanks



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1