Article ID: 183844
Article Last Modified on 6/17/2005
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
179216 OFF98: How to Use the Microsoft Office Installer Program
Additional query words: Event XL98
Keywords: kbprogramming kbdtacode KB183844