Article ID: 172515
Article Last Modified on 11/23/2006
Dim x as Long
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
' Set the row containing the active cell to bold.
ActiveCell.EntireRow.Font.Bold = True
' Check for first execution of the macro and set row value
' if it is:
If x = Empty Then
x = ActiveCell.Row
' Set previous row property back to normal, or not bold.
ElseIf Not x = ActiveCell.Row Then
Rows(x).EntireRow.Font.Bold = False
End If
' Capture new row value for comparison against next selection.
x = ActiveCell.Row
End Sub
120802 Office: How to Add/Remove a Single Office Program or Component
Additional query words: XL97 Event
Keywords: kbdtacode kbprogramming KB172515