+ Reply to Thread
Results 1 to 3 of 3

Comparing two excel files

  1. #1
    Registered User
    Join Date
    08-15-2012
    Location
    Ontario
    MS-Off Ver
    Excel 2021
    Posts
    35

    Comparing two excel files

    I'm trying to write a macro that will compare all cells in two excel files. The files are, for the most part identical, with only one or two different cells. They both contain a series of tabs that are identically named (names are things like "scenario", "results", etc.). I want to be able to compare the "results" tab in one file to the "results" tab in the second file. I found some code here: http://stackoverflow.com/a/5388488 but I'm having trouble adapting it to loop over each of the tabs in my worksheets. Can anyone point me in the right direction as to how to achieve this?

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Comparing two excel files

    You are too vague, what do you mean for compare ? attach a sample file
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    08-15-2012
    Location
    Ontario
    MS-Off Ver
    Excel 2021
    Posts
    35

    Re: Comparing two excel files

    By compare, I mean determine if cell A1 on tab "results" for File1 is equal in value to cell A1 in tab "results" for File2...and then repeat for all cells on all sheets in the file.

+ 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