+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Duplicates

  1. #1
    Registered User
    Join Date
    08-26-2011
    Location
    Cleveland, OH
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question Duplicates

    How do I create a macro that will search for duplicates between column A of one workbook and column A of another workbook and place in a third workbook?

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Duplicates

    tiffanytt,

    If you want to extract the duplicates between two workbooks (we'll call them wb1 and wb2) and then save the extracted duplicates into a third workbook, you can use the following macro:
    Please Login or Register  to view this content.


    To use a macro:
    1. Make a copy of the workbook you'll be running the macro in (in this case, its wb1)
      • Always run code on a copy so that you don't lose the original just in case the code doesn't run smoothly
    2. Press Alt+F11 to open the visual basic editor
    3. Insert -> Module
    4. Paste the code into the module
    5. Close the visual basic editor
    6. Alt+F8 to open the Macros dialogue box
    7. Double-click on the macro you want to run (I named this one tgr)
    Hope that helps,
    ~tigeravatar

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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