+ Reply to Thread
Results 1 to 2 of 2

VBA script to compare two workbooks and return differences between the two?

  1. #1
    Registered User
    Join Date
    09-27-2018
    Location
    Ohio
    MS-Off Ver
    19
    Posts
    21

    VBA script to compare two workbooks and return differences between the two?

    Hello all and thanks in advance for any help you may give this noob.

    I have two excel workbooks...

    One is called Master Employee List. It contains employee names, store #, ss#'s, hire dates, and a bunch of other manually entered data. All of this data is in one row per employee. I have each store # (individual location) in a different sheet, 11 total sheets.

    The second workbook is called Active Employee List. I export this file from my stores' databases weekly (it exports all stores into one excel file). It also contains employee names, store #, ss#'s, hire dates, and a lot of other data..again all in one row per employee.

    What I am trying to accomplish is to be able to identify if there is a new employee in the Active Employee List that is not in the Master Employee List, and also identify if someone from the Master Employee List is no longer an employee since they are missing from the Active Employee List. This could be accomplished by either highlighting the employee in each file that is missing from the other, or more preferably creating two new sheets in the Master file called New Employees and Terminated Employees. The only data I would need to have returned is the Store #, Employee Name and ss#. That would be Rows A,B,C and D (Store #, Last Name, First Name, SS#).

    Any guidance on this would be most appreciated.

    Thanks!
    CJ

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: VBA script to compare two workbooks and return differences between the two?

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. [SOLVED] Compare Columns In Different Workbooks and Highlight Differences
    By sunirone in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-17-2016, 07:54 PM
  2. Compare two workbooks and write Snapshot report for the differences!
    By tcambridge6307 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-28-2014, 06:24 PM
  3. [SOLVED] Compare Two Workbooks and Highlight Differences
    By mab1284 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2014, 07:35 PM
  4. Compare Excel Workbooks with reference column, update only differences
    By Rebex123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-26-2012, 01:08 PM
  5. Replies: 8
    Last Post: 07-04-2012, 01:32 AM
  6. Compare 2 Workbooks and Highlight Differences
    By LabanM in forum Excel General
    Replies: 3
    Last Post: 10-19-2010, 11:34 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