![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 1
|
Is there a way to quickly compare duplicate worksheets for accuracy?
In other words, I am converting 2 separate worksheets, BUT, each worksheet is suppose to contain the same data. Anyway to quickly compare these 2 worksheets? |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
|
The following seems to work OK and will highlight data on sheet2 that doesn't match that on sheet1. Run from a command button or via the macro dialog box: -
Dim c As Range Application.ScreenUpdating = False For Each c In Sheet2.UsedRange If c.Value <> Sheet1.Range(c.Address) Then c.Interior.ColorIndex = 3 End If Next c Application.ScreenUpdating = True |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|