If you change last row in cell A in Sheet1 the macro find in the Sheet2 the same name and copy the four values from Sheet2 columns E-H to Sheet1 to columns E - H.
Code for Sheet1:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim LRow As Integer
LRow = Range("A" & Rows.Count).End(xlUp).Row
If Target.Address = Range("A" & LRow).Address Then
Call FindNameCopyValues
End If
End Sub
and code for Module:
Sub FindNameCopyValues()
Dim LastRow As Integer
Dim MyValue As Variant
Dim rng As Range
LastRow = Range("A" & Rows.Count).End(xlUp).Row
MyValue = Range("A" & LastRow).Value
With Sheets("Sheet2").Range("A:A")
Set rng = .Find(What:=MyValue, _
After:=.Cells(.Cells.Count), _
LookIn:=xlFormulas, _
LookAt:=xlWhole, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
If Not rng Is Nothing Then
rng.Offset(, 4).Resize(, 4).Copy Range("E" & LastRow, "H" & LastRow)
End If
End With
End Sub
Here is the file:
data.xls
Bookmarks