If the cell was normally highlighted Yellow but it would change to Blue when you were on it, then change back to yellow when you moved to the next cell.
Thank you for your help.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.ScreenUpdating = False
'Clear the color of all cells
Cells.Interior.ColorIndex = 0
' Highlight the active cell
Target.Interior.ColorIndex = 20
Application.ScreenUpdating = True
End Sub
Thank you for your help.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.ScreenUpdating = False
'Clear the color of all cells
Cells.Interior.ColorIndex = 0
' Highlight the active cell
Target.Interior.ColorIndex = 20
Application.ScreenUpdating = True
End Sub