Dim tablo(1 To 10, 1 To 2)
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim i As Byte
If Not tablo(1, 1) = '' Then
For i = 1 To 10
Range(tablo(i, 1)).Interior.ColorIndex = tablo(i, 2)
Next i
End If
For i = 1 To 10
tablo(i, 1) = Cells(Target.Row, i).Address(0, 0)
tablo(i, 2) = Cells(Target.Row, i).Interior.ColorIndex
Cells(Target.Row, i).Interior.ColorIndex = 3
Next i
End Sub