Guys I’m looking for a simple Excel macro that can copy a row from one sheet to another when a column is different, but in the new sheet is not placed in the same row where they was, else that it will be added contiguously…
Sheet1:
A B C
One Spain 1000
Two Japan 2000
Three EEUU 3000
Sheet2:
A B C
One Italy 1000
Two Japan 2000
Three EEUU 4000
Sheet3(Final):
A B C
One Italy 1000
Three EEUU 4000
I would compare the sheet “Sheet1” with sheet “Sheet2” and if you find any difference in any column, copy the entire row of the worksheet “Sheet2” to a worksheet “Sheet3”.
Any tips would be much obliged.
Sory for my English, but I’m from Argentina.
thanks, Ignacio G
EDIT:
Actually, I’m using this code:
Public Sub ReconReport()
Dim rngCell As Range
For Each rngCell In Worksheets("Sheet1").UsedRange
If Not rngCell = Worksheets("Sheet2").Cells(rngCell.Row, rngCell.Column) Then _
Let Worksheets("Sheet3").Cells(rngCell.Row, rngCell.Column) = rngCell
Next
End Sub
But it just copy different cells, and what I need is that I copy the entire row …
Slow Answer: