Results 1 to 2 of 2

Trouble Deleting Empty rows in table

Threaded View

Stevekag Trouble Deleting Empty rows... 07-28-2011, 07:03 PM
Trebor76 Re: Trouble Deleting Empty... 07-28-2011, 09:09 PM
  1. #1
    Registered User
    Join Date
    07-28-2011
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Trouble Deleting Empty rows in table

    Can anyone help me. I have a spreadsheet that is about 5000 rows long. I need a macro that will search the selection (A9:E5000) look for empty cells and delete the row.
    Not as it happens but after initiating the macro. Here is what i was using but it is not working.

    My problem is similar to this post.

    Sub DeleteBlankRows2()
    
    'Deletes the entire row within the selection if _
    
     some of the cells WITHIN THE SELECTION contain no data.
    
    On Error Resume Next
    
    Selection.EntireRow.SpecialCells(xlBlanks).EntireRow.Delete
    
    On Error GoTo 0
    
    End Sub
    Last edited by Leith Ross; 07-28-2011 at 08:45 PM. Reason: Added Link, Code Tags, and Moved

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