You are on page 1of 1

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

'Update by Extendoffice
Dim rowRange As Range
Dim colRange As Range
Dim activeCell As Range
Set activeCell = Target.Cells(1, 1)
Set rowRange = Rows(activeCell.Row)
Set colRange = Columns(activeCell.Column)
Cells.Interior.ColorIndex = xlNone
rowRange.Interior.Color = RGB(255, 255, 190)
colRange.Interior.Color = RGB(255, 255, 210)
activeCell.Interior.Color = xlNone
End Sub

You might also like