+ Reply to Thread
Results 1 to 4 of 4

Delete Rows till next filled Cell

  1. #1
    Registered User
    Join Date
    06-22-2016
    Location
    Stuttgart, Germany
    MS-Off Ver
    2007
    Posts
    2

    Delete Rows till next filled Cell

    Hi everyone,

    I'm new in this forum and I already got my first question for you! :)

    I tried to write a macro which should delete rows starting at active cell, ending before next content cell in this column.

    So for example if I have content in B2 (activeCell) and then again in B6, the macro should delete rows 2 - 5,
    no matter which content is in other columns. Cells B3-B5 are blank!


    Hopefully I wrote my issue not too confusing.
    Please excuse the shitty english - I'm not a native speaker. ;)


    Thanks in advance for your help & Cheers
    Kaiserschmarrn

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Delete Rows till next filled Cell

    Welcome to the Forum. Try:

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Delete Rows till next filled Cell

    This option might be a little safer depending on your workflow

    Please Login or Register  to view this content.
    If you are happy with my response please click the * in the lower left of my post.

  4. #4
    Registered User
    Join Date
    06-22-2016
    Location
    Stuttgart, Germany
    MS-Off Ver
    2007
    Posts
    2

    Re: Delete Rows till next filled Cell

    Oh great!
    I also started with something like the first one, but for some reasons it deletes everything below the active cell.

    Second one works fine!

    Thank you so much!

+ 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 Code to Auto Fill Down till Next Filled Cell & reapply the code with new value
    By Ram_G in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-24-2016, 06:20 AM
  2. [SOLVED] Select column C and delete blank entire rows Till C300
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-04-2014, 08:55 AM
  3. [SOLVED] Automatically delete the same value in a cell when filled in other cell
    By boboivan in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-06-2014, 03:58 PM
  4. Detect the last filled row in column a and delete all rows after it
    By boss1982 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-12-2013, 05:27 AM
  5. [SOLVED] Delete unused rows or limit worksheet to only filled in cells?
    By youngtusk87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-30-2012, 01:03 AM
  6. count filled and empty rows till the last filled row
    By Dalal in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-29-2011, 04:32 AM
  7. delete dulipate rows by checking each and every cell in a row till end.
    By sreedhar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-30-2005, 06:20 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