+ Reply to Thread
Results 1 to 5 of 5

Compare two worksheets and highlight differences on one of the worksheets

  1. #1
    Registered User
    Join Date
    05-17-2013
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    17

    Compare two worksheets and highlight differences on one of the worksheets

    Hello all,

    I have two worksheets in the same workbook. The first worksheet contains last periods score matrix, the second worksheet contains this periods score matrix.

    I am struggling to find a away to highlight those cells in this periods worksheet that are different from last periods worksheet.

    I have been able to go as far as identifying the changed cells. I know that works from use of 'MsgBoxes', however I cannot find a way to highlight the identified cells. Its probably because I have chosen to go about this the wrong way entirely. Can someone please give me a guide as to how I should go about this?

    The code I have that works (according to MsgBox's anyway) is below. I would very much appreciate any guidance whatsoever.

    I am using Excel 2003

    Thanks,

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    10-13-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    401

    Re: Compare two worksheets and highlight differences on one of the worksheets

    Try this:

    Please Login or Register  to view this content.
    Change the color shade and tint as desired.

  3. #3
    Registered User
    Join Date
    05-17-2013
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Compare two worksheets and highlight differences on one of the worksheets

    Thanks Ed,

    Unfortunately "varScoring(irow, icol).Select" brings up Run-time error 424 - Object Required

    Any other suggestions very welcome.

    Quote Originally Posted by Ed_Collins View Post
    Try this:

    Please Login or Register  to view this content.
    Change the color shade and tint as desired.

  4. #4
    Forum Contributor
    Join Date
    10-13-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    401

    Re: Compare two worksheets and highlight differences on one of the worksheets

    Okay, then how about just Cells(irow, icol).select
    That should work, I think. We just need to select that cell before we can highlight it.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-17-2013
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Compare two worksheets and highlight differences on one of the worksheets

    Solution found - see below

    Thanks all.

    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)

Tags for this Thread

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