+ Reply to Thread
Results 1 to 6 of 6

Delete empty rows between data blocks

  1. #1
    Forum Contributor
    Join Date
    02-18-2013
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2016
    Posts
    221

    Delete empty rows between data blocks

    Hello!

    I have a sheet with many different data blocks of different sizes. These blocks have a random number of empty rows between them. I want to have only a single empty row between them. How can I deleted the other empty rows?

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,345

    Re: Delete empty rows between data blocks

    Perhaps this code of JasonB75
    Please Login or Register  to view this content.

    Edited: To speed up code
    Last edited by sintek; 04-21-2017 at 05:46 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor
    Join Date
    02-18-2013
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2016
    Posts
    221

    Re: Delete empty rows between data blocks

    This works very well, thank you very much! It takes some processing time, is there a way to speed it up?

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,345

    Re: Delete empty rows between data blocks

    Quote Originally Posted by excelactuary View Post
    This works very well, thank you very much! It takes some processing time, is there a way to speed it up?
    See edited code above

  5. #5
    Forum Contributor
    Join Date
    02-18-2013
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2016
    Posts
    221

    Re: Delete empty rows between data blocks

    Excellent, thank you so much!

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,345

    Re: Delete empty rows between data blocks

    pleasure, thanks for rep points...Please mark thread as solved.

+ 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. Replies: 1
    Last Post: 07-17-2014, 04:49 AM
  2. Delete Empty Rows and empty columns from the word table
    By mvneema in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2014, 10:51 AM
  3. [SOLVED] Search for empty cell and delete that row plus the next 19 rows even if they contain data
    By aprcamb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-13-2013, 11:43 AM
  4. [SOLVED] How to delete blocks of rows in Excel
    By Baytreeal in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-18-2013, 11:20 AM
  5. Autofilter/delete empty rows is deleting non-empty rows!
    By oOarthurOo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2010, 12:31 PM
  6. Move data into empty rows when i delete old data
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2007, 05:56 AM
  7. Find last row of data and delete empty rows
    By Pat in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-18-2005, 10:06 AM

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