+ Reply to Thread
Results 1 to 4 of 4

Delete empty lines in cell range

  1. #1
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Delete empty lines in cell range

    Hi I have below code which original was delivered from Jindon. Its an excellent code. And it was made to delete empty lines in a textbox original.
    I forgot ask how to use in in a cell range and do the same.
    I made below code which good but only in one cell.- I have tried much to change it so it works in cell range, but always some error.
    The code now do the job in cell B16. But i would like it to be changed so it works in range example X7:X16.
    It seems like excel forum have issues. But i hope i manage to get it posted correct.
    Please have a look at the code.
    Sincerely
    Abjac

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Delete empty lines in cell range

    This should work on both Cell/TextBox
    Please Login or Register  to view this content.
    Edit:
    missed
    would like it to be changed so it works in range example X7:X16.
    Last edited by jindon; 08-26-2020 at 08:35 AM.

  3. #3
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Delete empty lines in cell range

    HI Jindon and thanks alot for look at it. Little correction. It works perfect. I just added so it goes to sheet 2. Thats why it did not work first time. But its just
    perfect. Not sure i can give you reputation again so short time after. But i would like to say all the years i have been a member of this board. You with your
    fantastic skills have helped me and many others, who like these macros but dont have your sklls. So i can only say thanks alot sure many others will say the same.
    Have a nice day.
    Sincerely
    Abjac
    Last edited by abjac; 08-26-2020 at 09:19 AM.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Delete empty lines in cell range

    You are welcome and thanks for the kind word.

+ 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] Delete empty lines in textbox but keep existing lines.
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-25-2020, 09:39 PM
  2. [SOLVED] Find last empty cell from range, then delete rows?
    By B.W.B. in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-06-2016, 06:15 AM
  3. [SOLVED] Delete cell contents if the corresponding range is empty
    By zanguard80 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-29-2015, 06:32 PM
  4. How to delete entire row if first cell of it is empty for specific range and worksheets
    By roshanvmech in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-01-2014, 12:36 PM
  5. [SOLVED] Macro to delete entire row (within a specified range) if cell in column A is empty
    By instinctellekt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-07-2012, 10:01 AM
  6. Print range without empty lines
    By oherbol in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-04-2012, 08:26 PM
  7. find <> empty cell in range, delete entire row
    By Shell_ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-26-2011, 12:36 PM

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