+ Reply to Thread
Results 1 to 4 of 4

Macro that can compare sheets between 2 workbooks, highlight the difference

  1. #1
    Registered User
    Join Date
    11-28-2013
    Location
    PH
    MS-Off Ver
    Excel 2010
    Posts
    16

    Macro that can compare sheets between 2 workbooks, highlight the difference

    Hi,

    I need a macro that can compare sheets between 2 workbooks, highlight the difference and save only those sheets with highlights in new workbook.

    Please see below code:

    Please Login or Register  to view this content.
    It doesn't highlight those with difference and saves all sheets in different workbooks.


    Thanks for your help!

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Macro that can compare sheets between 2 workbooks, highlight the difference

    HI,

    You are checking the formula's so if you have A1=10 and B1 =20 and in C1 you have 30 (10+20) by comparing formula you will only compare the formula, you need to check if its a formula you want to compare or do you want to compare the Value i.e. the formula result?
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    11-28-2013
    Location
    PH
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Macro that can compare sheets between 2 workbooks, highlight the difference

    Hi nathansav,

    I need to compare the values in each sheet on both workbooks, i need to highlight those cell with changes in each sheet.

  4. #4
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Macro that can compare sheets between 2 workbooks, highlight the difference

    change the .formula to .value

+ 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. Macro To Compare Multiple Excel sheets and highlight duplicates
    By Rey123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2013, 05:07 AM
  2. Replies: 9
    Last Post: 04-18-2013, 03:54 PM
  3. Replies: 0
    Last Post: 02-03-2013, 08:58 AM
  4. Replies: 5
    Last Post: 01-06-2012, 04:15 AM
  5. [SOLVED] Compare strings in cells and highlight difference
    By Odin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2006, 05:20 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