Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim C As Range, Tablo, Agent
Set Tablo = Range("c5:i" & Cells.Find("*", , , , xlByRows, xlPrevious).Row)
Set Agent = Range("k7:k" & Cells(Rows.Count, "p").End(xlUp).Row)
Tablo.Interior.ColorIndex = xlNone: Agent.Interior.ColorIndex = xlNone
If Intersect(Target, Agent) Is Nothing Or Target.Count > 1 Then Exit Sub
Target.Interior.ColorIndex = 4
For Each C In Tablo
If C = Target.Offset(, 5) And C <> "" Then C.Interior.ColorIndex = 4
Next
End Sub