+ Reply to Thread
Results 1 to 2 of 2

Copy unique row from 2 workbooks

  1. #1
    Registered User
    Join Date
    07-22-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    38

    Copy unique row from 2 workbooks

    Hi guys,

    I very new to excel and newer to vb and have tried fiddling around but cant seem to get it started, so i need some help with copying all unique rows to a new workbook. Ive done searches and it seems theres alot of 'compare' sheets but not books.

    I have 3 work books:

    • book1 = original data
    • book2 = new data and some original data
    • book3 = blank, will be populated once I can get this going


    the result i am hoping to get is...

    From wb3 i would click a button and then prompt to “select file” twice. To select book1.xlsx & then select book2.xlsx. Once both selected, compare book1 column A & book2 column A. Then all unique rows to populate next available row in book3. Also, wb1 has multiple sheets. if this is a problem i will split it up

    Can someone help point me in the right direction to get this started? I’m at a loss.

    Ive attached a 2 samples... if it helps. book1.xlsx & book2.xlsx

    thanks in advance for any wisdom & knowledge you can share

  2. #2
    Registered User
    Join Date
    07-22-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Copy unique row from 2 workbooks

    Hi guys,

    I found something & modified it to work with my query, but how do i change it so that:

    • at the begining i select book1.xlsx & book2.xlsx instead of having to open them first?
      The file name may not always be the same - but the records will always be in the same formatting & locations
    • instead of creating a new book, add to wb3 (current opened book where code is saved)

    thanks in advance for your assistance

    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)

Similar Threads

  1. Copy Data from 100 workbooks with cells into a master workbooks
    By roy__lam in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-10-2013, 02:11 PM
  2. [SOLVED] Open Multiple Workbooks, Record names, Copy paste to Active Workbook, Close the Workbooks
    By vba_madness in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-24-2013, 06:09 AM
  3. [SOLVED] Compare and Copy unique data between 2 workbooks
    By pucval in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-21-2012, 07:17 AM
  4. Counting Unique entries from 3 workbooks
    By Gooford in forum Excel General
    Replies: 2
    Last Post: 09-23-2009, 11:48 AM
  5. Macros unique to workbooks?
    By krazeecom in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-22-2009, 10:53 AM

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