+ Reply to Thread
Results 1 to 7 of 7

Macro to Copy duplicates to new sheet

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    102

    Macro to Copy duplicates to new sheet

    i want to copy duplicates to a new sheet for instance

    Sheet 1
    A B C D
    A B C D
    A B C D
    A B! C! D
    A B! C! D
    A B! C! D
    A B! C! D!

    New Sheet
    A B C D
    A B! C! D
    A B! C! D!

  2. #2
    Forum Contributor
    Join Date
    06-18-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    102

    Re: Macro to Copy duplicates to new sheet

    I found similar ones but I only need to compare A B C D for duplicates and copy A B C D

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Macro to Copy duplicates to new sheet

    Hi.

    Try..
    Please Login or Register  to view this content.
    "No xadrez nem sempre a menor dist?ncia entre dois pontos ? uma linha reta" G. Kasparov.

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select b from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro to Copy duplicates to new sheet

    Hi marreco,
    The OP wants to compare 4 columns, while you code uses one column only. Beside this, the OP wants to copy the duplicates in to new sheet.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    06-18-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    102

    Re: Macro to Copy duplicates to new sheet

    Yes I am trying to compare columns A, B, C, D with the other columns and then copy only those 4 columns to a new sheet so for my final I would have only one copy of each A, B, C, D on a new sheet. I found code to copy duplicates but it's always the whole row and it compares the whole row.

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro to Copy duplicates to new sheet

    Please attach a sample with a desired result.

  7. #7
    Forum Contributor
    Join Date
    06-18-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    102

    Re: Macro to Copy duplicates to new sheet

    The code AB33 worked nicely! I can add some code to copy it from there.

+ 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. how to identify duplicates and copy to them to the next sheet
    By omolemo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-01-2013, 07:52 AM
  2. [SOLVED] copy data from one sheet to another without duplicates (within one workbook)
    By jrosko1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-05-2013, 02:21 AM
  3. Macro that would Copy/Paste to new sheet and remove duplicates
    By dani_n88 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-11-2012, 06:04 PM
  4. Copy Duplicates to new sheet
    By faisalS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-01-2011, 05:52 PM
  5. Copy Entire Row into New Sheet, remove duplicates
    By aeh7b in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-17-2011, 05:46 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