+ Reply to Thread
Results 1 to 5 of 5

Deleting Rows

  1. #1
    Forum Contributor
    Join Date
    10-23-2003
    Posts
    141

    Deleting Rows

    Does anyone have any suggestions for a code that will look at column A and if any cell is blank in column A then delete the entire row?

    Any help would be greatly appreciated.

    Thanks!

  2. #2
    Dave Peterson
    Guest

    Re: Deleting Rows

    on error resume next
    activesheet.range("a:a").cells.specialcells(xlcelltypeblanks).entirerow.delete
    on error goto 0

    STEVEB wrote:
    >
    > Does anyone have any suggestions for a code that will look at column A
    > and if any cell is blank in column A then delete the entire row?
    >
    > Any help would be greatly appreciated.
    >
    > Thanks!
    >
    > --
    > STEVEB
    > ------------------------------------------------------------------------
    > STEVEB's Profile: http://www.excelforum.com/member.php...fo&userid=1872
    > View this thread: http://www.excelforum.com/showthread...hreadid=491829


    --

    Dave Peterson

  3. #3
    Forum Contributor
    Join Date
    10-23-2003
    Posts
    141
    Thanks Dave!

    That worked perfect!!!

  4. #4
    Tom Ogilvy
    Guest

    Re: Deleting Rows

    Sub DeleteRows()
    On Error Resume Next
    columns(1).Specialcells(xlBlanks).EntireRow.Delete
    End sub

    --
    Regards,
    Tom Ogilvy


    "STEVEB" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Does anyone have any suggestions for a code that will look at column A
    > and if any cell is blank in column A then delete the entire row?
    >
    > Any help would be greatly appreciated.
    >
    > Thanks!
    >
    >
    > --
    > STEVEB
    > ------------------------------------------------------------------------
    > STEVEB's Profile:

    http://www.excelforum.com/member.php...fo&userid=1872
    > View this thread: http://www.excelforum.com/showthread...hreadid=491829
    >




  5. #5
    Forum Contributor
    Join Date
    10-23-2003
    Posts
    141
    Thanks Tom,

    I appreciate your help

+ 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