Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

Private Sub Worksheet_SelectionChange(ByVal Target As Excel.

Range)
Application.ScreenUpdating = False
Static strPrevAddress As String
If Not strPrevAddress = vbNullString Then
With Range(strPrevAddress)
.Interior.ColorIndex = xlNone
'.Font.Bold = False
End With
End If
With Target
.Interior.ColorIndex = 6
'.Font.Bold = True
End With
strPrevAddress = Target.Address
Application.ScreenUpdating = True
End Sub

You might also like