merge two files with replacements
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: merge two files with replacements

  1. #1
    New Member
    Join Date
    Feb 2002
    Posts
    10
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    I have two excel files. One is a master name and address listing. The other is a list of corrections to this list that are received periodically. There is a key field that is identical in both files. Is there a routine that would match records based on this key field and replace the old records with the updated ones.

    I'm looking at a file size of around a thousand records in the master file and up to a couple of hundred on the update file...

    Thanks
    John Niolon

  2. #2
    Board Regular
    Join Date
    Mar 2002
    Location
    Brampton
    Posts
    328
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Use a Workbook_BeforeClose event procedure for the update file, which will open the master file, match the records with updates (use worksheet function Match) and replace the old values for name/address with the corresponding values from the update file.

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com