Try an alternative, it may be faster by using Find method (priority for the update record)
Right click on sheet tab (the sheet in that you want auto input data) and select view code, then paste the following code in to
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
Const rStart = 2: Const cEnd = 10
If Not Intersect(Target, Range(Cells(rStart, 2), Cells(Rows.Count, 2))) Is Nothing Then
Application.EnableEvents = False
Dim iR As Long, rgnF As Range
Set rgnF = Nothing
Set rgnF = Range(Cells(Target.Offset(-1).Row, 2), Cells(rStart, 2)).Find(What:=Target.Value, _
LookIn:=xlValues, LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlPrevious, _
MatchCase:=False, SearchFormat:=False)
On Error GoTo 0
If Not rgnF Is Nothing Then
Range(Cells(Target.Row, 1), Cells(Target.Row, cEnd)).Value _
= Range(Cells(rgnF.Row, 1), Cells(rgnF.Row, cEnd)).Value
End If
End If
Application.EnableEvents = True
End Sub
Bookmarks