Highlighting chances in shared worksheets

  • Thread starter Thread starter Dream
  • Start date Start date
D

Dream

Two Excel Worksheets - need to idenify non matching records ( in changing
rows /columns) ?

How
 
Hope this works for you:
Sub Compare2Shts()
For Each Cell In Worksheets("CompareSheet#1").UsedRange
If Cell.Value <> Worksheets("CompareSheet#2").Range(Cell.Address) Then
Cell.Interior.ColorIndex = 3
End If
Next

For Each Cell In Worksheets("CompareSheet#2").UsedRange
If Cell.Value <> Worksheets("CompareSheet#1").Range(Cell.Address) Then
Cell.Interior.ColorIndex = 3
End If
Next
End Sub


Regards,
Ryan---
 
Back
Top