+ Reply to Thread
Results 1 to 8 of 8

Delete Blank rows

  1. #1
    Registered User
    Join Date
    01-25-2015
    Location
    india
    MS-Off Ver
    2007
    Posts
    10

    Delete Blank rows

    Hi,

    i have some data and in between having blank rows. i want to delete all rows till my last row with data by having loop through each cell and validating with isempty formula, or any other criteria.

    Thanks
    Raju

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Delete Blank rows

    Do you have a worksheet to post. There are several things to know. For instance is there a range of cells in a row that have to be blank before you want to delete the row, perhaps columns 1 through 9 etc.? Is it just one cell for instance if any cell in column A of a row is empty then delete the entire row?

  3. #3
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Delete Blank rows

    Hi,

    something like this :

    Please Login or Register  to view this content.
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  4. #4
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Delete Blank rows

    Okay may be this what you need:-

    Please Login or Register  to view this content.
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  5. #5
    Registered User
    Join Date
    01-25-2015
    Location
    india
    MS-Off Ver
    2007
    Posts
    10

    Re: Delete Blank rows

    Hi,

    See attached file. i want the macro code to go through each row in column A until last row with text and delete entire row which are all blanks

    Thanks
    Raju
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Delete Blank rows

    Did you tried the offered solutions?

    And what is the result on the offered solutions?
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  7. #7
    Registered User
    Join Date
    01-25-2015
    Location
    india
    MS-Off Ver
    2007
    Posts
    10

    Re: Delete Blank rows

    Hi,

    I have tried this code given.

    For x = Me.UsedRange.Rows.Count To 2 Step -1
    If Range("a" & x) = "" Then
    Rows(x).Delete
    End If
    Next

    but i am getting an error, highlightinhg me.usedrange error.

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Delete Blank rows

    Then try the solution of Vikas_Gautam.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VBA Find last row and column that contain data and delete all blank rows and blank columns
    By bcn1988 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-03-2012, 01:07 PM
  2. [SOLVED] How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows
    By raw_geek in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 11-16-2012, 03:17 PM
  3. [SOLVED] Delete blank rows after filter - if no blank rows exit sub
    By cmb80 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-27-2012, 10:00 AM
  4. Replies: 1
    Last Post: 05-10-2012, 04:58 PM
  5. [SOLVED] To delete blank rows having blank cell in the needed raws
    By Alexander_Golinsky in forum Excel General
    Replies: 4
    Last Post: 05-04-2012, 03:11 PM

Tags for this Thread

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