+ Reply to Thread
Results 1 to 5 of 5

Merge selected cells vertically and delete alll other rows but top row

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    263

    Merge selected cells vertically and delete alll other rows but top row

    I am using the macro below to merge all selected cells vertically to the top selected cell(s). I am looking to delete the entire rows of the cells below the top selected cell after they have been merged. Any ideas on how to accomplish this? Thanks.

    Please Login or Register  to view this content.
    Last edited by Brawnystaff; 10-25-2014 at 08:37 PM.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Merge selected cells vertically and delete alll other rows but top row

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    263

    Re: Merge selected cells vertically and delete alll other rows but top row

    Any way to limit the rows deleted to only those with selected cells (minus the top row which will contain the merged data)? Thanks.

  4. #4
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    263

    Re: Merge selected cells vertically and delete alll other rows but top row

    Actually, after looking at your code, I believe I have solved it using the following code:

    Please Login or Register  to view this content.
    This will be marked as solved. Thanks

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Merge selected cells vertically and delete alll other rows but top row

    You're welcome!

+ 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] Join and Merge Selected Selected Cells
    By Brawnystaff in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-05-2014, 06:54 PM
  2. Loop backwards through selected range - delete entire row from selected cells
    By scottbass in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2014, 09:21 AM
  3. Replies: 2
    Last Post: 08-28-2011, 02:39 AM
  4. Copy/Delete rows based on amount of cells selected
    By mcj0422 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-26-2009, 09:30 AM
  5. delete columns and rows-cells equalling zero or any selected value
    By Scottie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-09-2005, 04:06 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