+ Reply to Thread
Results 1 to 9 of 9

Simple Merge Cells for One Row (Macro)

  1. #1
    Forum Contributor
    Join Date
    12-20-2012
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    171

    Simple Merge Cells for One Row (Macro)

    hi,

    please i want a macro to merge all continues duplicate values, but plz note that all r in the same row.

    if possible also, please disable the warning popup message 1.png

    sample is attached

    thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Simple Merge Cells for One Row (Macro)

    Try

    Please Login or Register  to view this content.
    If you like my contribution click the star icon!

  3. #3
    Forum Contributor
    Join Date
    12-20-2012
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    171

    Re: Simple Merge Cells for One Row (Macro)

    hi ollie

    i tried your macro, it is working after column H only, where is the code to make for the whole first row for example?
    thanks.

  4. #4
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Simple Merge Cells for One Row (Macro)

    Not sure what you mean!

    It works perfectly on the example you gave me, all relevant cells on row 1 are merged.

    Are you sure you are testing correctly?

  5. #5
    Forum Contributor
    Join Date
    12-20-2012
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    171

    Re: Simple Merge Cells for One Row (Macro)

    ok i found the problem,

    if you copy row 1 and paste it to row no. 2,3 & 4, the macro will also merge them, not only the first row as what i want.
    please i want to to merge the continues duplicate values only in the first row.

    and please tell me how if i want to merge row no. 2 or 3 or....etc. separately. (not all together)
    thank u.

  6. #6
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Simple Merge Cells for One Row (Macro)

    If you only want to merge row 1

    change

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.
    If you want to merge other rows, just indicate from which row to which row.

  7. #7
    Forum Contributor
    Join Date
    12-20-2012
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    171

    Re: Simple Merge Cells for One Row (Macro)

    ok i found the problem,

    if you copy row 1 and paste it to row no. 2,3 & 4, the macro will also merge them, not only the first row as what i want.
    please i want to to merge the continues duplicate values only in the first row.

    and please tell me how if i want to merge row no. 2 or 3 or....etc. separately. (not all together)
    thank u.

  8. #8
    Forum Contributor
    Join Date
    12-20-2012
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    171

    Re: Simple Merge Cells for One Row (Macro)

    Thank you Ollie.

    it is working perfectly.

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,629

    Re: Simple Merge Cells for One Row (Macro)

    Pl try this code.It is only for Row 1 only.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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