السلام عليكم و رحمة الله
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column <> 6 Then Exit Sub
TR = Target.Row
Q = Cells(TR, Target.Column)
QQ = Application.WorksheetFunction.CountIf(Range("F4:F9999"), Q)
If QQ < 2 Then Exit Sub
Application.ScreenUpdating = False
For R = 6 To TR - 1
If Cells(R, 6) = Cells(TR, 6) Then
Cells(TR, 3) = Cells(R, 3)
Cells(TR, 5) = Cells(R, 5)
End If
Next
Application.ScreenUpdating = True
End Sub
Lookup بالكود.rar