I look at numbers all day and the below code really keeps me from losing my spot. See Attached and click anywhere. BUT, how can I STOP this code from clearing all other background colors from the spreadsheet?
[CODE]
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
Application.ScreenUpdating = False
'Clear all cell colours
Cells.Interior.ColorIndex = 0
With Target
'Row and column highlightingfor the active cell
.EntireRow.Interior.ColorIndex = 19
.EntireColumn.Interior.ColorIndex = 19
End With
Application.ScreenUpdating = True
End Sub
[CODE]
Bookmarks