Hello, I'm rather new to Excel and VBA programming, but being a C++ programmer has helped me a little bit. I've got two spreadsheets with duplicate employee id columns (col G and Z) and phone number columns (col H and AA). Only the AA phone number column has data and I need to move it to the other column based on matching columns G and Z. I wrote this little bit of code, but it's not working? Can someone please point me in the right direction. Thanks!
Sub Fixit()
Dim i As Integer
Dim j As Integer
For i = 2 To 3261
For j = 10 To 6510
If Cells(i, Z).Value = Cells(j, G).Value Then _
Cells(i, H).Value = Cells(j, AA).Value
Next j
Next i
End Sub
Justin Robinson
[email protected]
** You'll notice the Z/AA columns are smaller in size.
Bookmarks