Excel Compare Two Sheets For Differences Official
' Assume same dimensions Set rng1 = ws1.UsedRange Set rng2 = ws2.UsedRange
For Each cell In rng1 If cell.Value <> ws2.Cells(cell.Row, cell.Column).Value Then diffCount = diffCount + 1 ' Highlight on Sheet2 ws2.Cells(cell.Row, cell.Column).Interior.Color = RGB(255, 255, 0) End If Next cell excel compare two sheets for differences
To check if entire row exists: