+ Reply to Thread
Results 1 to 3 of 3

Copying records from one workbook to another if new data

  1. #1
    Registered User
    Join Date
    02-17-2010
    Location
    San Francisco
    MS-Off Ver
    Excel 2003
    Posts
    1

    Copying records from one workbook to another if new data

    Hi all,

    Sorry for my first post to be asking for help. I don't have any experience with macros, but I'm trying to create one which will allow me to copy rows from one workbook to another based on whether a row with a unique ID already exists in the destination file.

    I have two files, a master file called "master transfer file.xls" and then will get report files called "new data.xls." Both files have the same columns (but the master file has some additional manually entered columns at the far right. The new data files will have some records that are already in the master file and I want to ignore those (if column E in the row in the new data file equals any row column E in the master file. If the the value for column E doesn't already exist in the master file, I want to copy that row.

    Can anyone provide a suggestion or point me in the right direction?

    Thanks!

  2. #2
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    Re: Copying records from one workbook to another if new data

    HI
    Why don't you simply save master transfer file.xls as "new data.xls". If you there is no difference between the two.
    Ravi

  3. #3
    Forum Contributor
    Join Date
    02-04-2010
    Location
    Hertfordshire, England
    MS-Off Ver
    Office 2007 (home) Office 365 (work)
    Posts
    134

    Re: Copying records from one workbook to another if new data

    Hi PDW500

    The following code if copied to the master transfer file, may meet your requirements.

    You will need to change the worksheet references in the code to refer to your actual worksheets.

    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