+ Reply to Thread
Results 1 to 4 of 4

How to merge last used rows

  1. #1
    Forum Contributor
    Join Date
    12-11-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    517

    How to merge last used rows

    Hi, im trying to merge A:C starting at row A5. I tried this code but its not working. Please help

    Please Login or Register  to view this content.
    Thanks

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: How to merge last used rows

    Hi there,

    It's hard to believe that you need to merge the cells in EVERY row of the worksheet - why not settle for a reasonable number of rows and use the following code:

    Please Login or Register  to view this content.
    The highlighted values can be altered to suit your requirements.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M




    P.S. If you want to merge the row cells and the column cells use the following code:

    Please Login or Register  to view this content.
    Last edited by Greg M; 09-11-2015 at 04:59 PM. Reason: P. S. added

  3. #3
    Forum Contributor
    Join Date
    12-11-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    517

    Re: How to merge last used rows

    Quote Originally Posted by Greg M View Post
    Hi there,

    It's hard to believe that you need to merge the cells in EVERY row of the worksheet - why not settle for a reasonable number of rows and use the following code:

    Please Login or Register  to view this content.
    The highlighted values can be altered to suit your requirements.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M




    P.S. If you want to merge the row cells and the column cells use the following code:

    Please Login or Register  to view this content.
    Thanks so much !!

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: How to merge last used rows

    Hi again,

    Thanks for your reply - I'll assume that the code is doing what you want!

    Best regards,

    Greg M

+ 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] Merge multiple rows separated by blank rows
    By cgman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-20-2015, 09:03 PM
  2. [SOLVED] VBA to merge rows
    By Teblol in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-13-2015, 01:42 PM
  3. Merge Duplicate Rows unique values into single rows for an infinite amount of columns/rows
    By aimeecrystalaid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2013, 08:43 PM
  4. [SOLVED] Merge multiple duplicate rows into columns - more than 65536 rows
    By a3des in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-05-2013, 09:18 AM
  5. [SOLVED] Merge duplicate rows and merge the columns (approx 10 columns)
    By adfeddon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-02-2012, 11:19 AM
  6. Replies: 1
    Last Post: 06-14-2012, 09:27 AM
  7. Merge two rows into one, then merge into mailer?
    By tavat in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-24-2006, 02:55 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