+ Reply to Thread
Results 1 to 4 of 4

Merge cells and remove duplicate rows

  1. #1
    Registered User
    Join Date
    07-27-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Question Merge cells and remove duplicate rows

    Hello,

    I'm trying to set up a Macro which will take the following information:

    Please Login or Register  to view this content.
    ...in columns A, B, C, D and E, and output the following:

    Please Login or Register  to view this content.
    ...in columns A, B, C, D, E, F and G.

    Any ideas how to go about doing this would be really appreciated!

    Thanks,

    Mark

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Merge cells and remove duplicate rows

    Try this, which puts the results in sheet2.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-27-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Merge cells and remove duplicate rows

    Hello,

    Thanks for the quick reply - the code you've provided works really well.

    However, as the spreadsheet I am working on only has one tab (named 'ReportData') as it is automatically created from a piece of software, could you modify the Macro to overwrite the data rather than putting it into a separate worksheet?

    Alternatively, could you include some code in the Macro to insert a new sheet before pasting the data across?

    If you could indicate how this could be done, I'd appreciate it!

    Thanks,

    Mark

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Merge cells and remove duplicate rows

    Mark - this will add a second sheet if not already there:
    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