Sub crossUpdate() Dim rng1 As Range, rng2 As Range, N As Long Dim rng1Row As Range Dim rng2Row As Range Dim i As Integer, j As Integer Dim Cell As Variant N = Cells(Rows.Count, "A").End(xlUp).row Set rng1 = Sheet1.Cells.Range("A2:A" & N) Set rng2 = Sheet2.Cells.Range("A2:A" & N) For i = 2 To rng1.Rows.Count Set rng1Row = rng1.Cells(i, 1).EntireRow Set rng2Row = rng2.Cells(i, 1).EntireRow Key = Sheet1.Range("A" & i) For j = 1 To rng1.Columns.Count If rng1Row.Cells(i, j).Value <> rng2Row.Cells(i, j).Value Then Else End If Next j Next i End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)