Option Explicit
' declarations
Dim lRow As Long, lColumn As Long
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
' constants
' declarations
' start
If Target.Cells.Count > 1 Then Exit Sub
' process
' previous cell
If lRow > 0 And lColumn > 0 Then
With Cells(lRow, lColumn)
With .Font
.ColorIndex = xlAutomatic
.TintAndShade = 0
End With
With .Interior
.Pattern = xlNone
.TintAndShade = 0
.PatternTintAndShade = 0
End With
End With
End If
' actual cell
With Target
With .Font
.ThemeColor = xlThemeColorDark1
.TintAndShade = 0
End With
With .Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorLight1
.TintAndShade = 0
.PatternTintAndShade = 0
End With
End With
' end
With Target
lRow = .Row
lColumn = .Column
End With
End Sub