+ Reply to Thread
Results 1 to 5 of 5

Find differences between sheets in different workbooks

  1. #1
    Registered User
    Join Date
    03-25-2013
    Location
    New Delhi
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    37

    Find differences between sheets in different workbooks

    Hi All Good Evening,

    I have came across an problem to which I am unable to find solution need your expertise to help me out.

    I have two workbooks with around 60-70 tabs each (tabs are named similar in both the workbooks), I need to find difference between two tabs from both the workbooks ( which have same name).

    Say both the workbooks have a Tab (Sheet) named "FTSE100" and have certain data in them. I want to know the difference between them. Both the sheets have a particular column named "Returns" I have to find the difference between them. It also have another column with unique identifier so that I can apply Vlookup to get the desired results.
    But, the issue is there are more than 60 tabs (sheets) in each workbook and it will take a hell lot of time to apply Vlookup in each of the tabs (sheets).
    I need that a VBA code creates a new sheet and shows results for each of the Sheets between both the workbook.

    I hope I have clearly mentioned what I am looking for here.😕🧐 :?:


    1. Workbooks are named Prt_Oct 2019 and Prt_Nov 2019.
    2. both books will be open (suggest if it will work when one remain closed).
    3. Prt_Nov 2019 should have the results in it.
    4. Yes the first row have headers.
    5. 1st col have the unique identifier ( Col header named ISIN).
    6. Col E will have Returns.
    7. Columns headers are consistent

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Find differences between sheets in different workbooks

    I only tested thif for compile, I did not set up the workbooks, so you will need to do the acid test. Post back with description of any problem. "Didn't Work" is not a description of the problem.

    Please Login or Register  to view this content.
    Last edited by JLGWhiz; 12-10-2019 at 04:26 PM.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Registered User
    Join Date
    03-25-2013
    Location
    New Delhi
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    37

    Re: Find differences between sheets in different workbooks

    Hi JLGWhiz,

    Thanks for the code I will test the code and come back.

    Thanks a lot

  4. #4
    Registered User
    Join Date
    03-25-2013
    Location
    New Delhi
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    37
    I have used your code but, the debugger showing that an variable have not been declared.

    I have attached a copy of what the Workbooks would look like .
    The Testing_2.xlsm should have the output.
    Attached Files Attached Files

  5. #5
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Find differences between sheets in different workbooks

    I had some typos in my code and there were also typos in the code you were using to test. here is code that was tested using your two example sheets. Only the workbook names are different. However, blank sheets will produce error messages because there is no data for the code to execute against.

    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. How to find differences between two sheets?
    By maknu in forum Excel General
    Replies: 4
    Last Post: 05-13-2019, 08:52 AM
  2. Find differences between 2 excel sheets or tables
    By FBG098 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-24-2015, 11:16 AM
  3. Comparison of 2 sheets from different workbooks and highlighting the differences
    By zsimur in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2013, 07:31 AM
  4. Find Differences between columns sheets
    By dalerdd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-02-2013, 02:44 PM
  5. how to find differences between 2 excel sheets
    By remdog in forum Excel General
    Replies: 7
    Last Post: 09-11-2012, 07:16 AM
  6. Replies: 1
    Last Post: 07-12-2012, 05:43 AM
  7. Find differences between two Excel workbooks or worksheets
    By savage_planet in forum Excel General
    Replies: 0
    Last Post: 10-03-2005, 12:05 PM

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