very bad code, but it works ^^
Sub copyto()
On Error Resume Next
Dim Cell As Range, Ncell As String, dest As Range
Workbooks("From").Activate
For Each Cell In Range("A1", Cells(Rows.Count, 1).End(xlUp))
Cell.Activate
Cell.Offset(0, 1).Copy
Ncell = Cell.Value
Workbooks("pastto").Activate
Set dest = Cells.Find(What:=Ncell, After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False)
dest.PasteSpecial xlPasteValues
Workbooks("From").Activate
Next Cell
End Sub
Bookmarks