njbeancounter
Board Regular
- Joined
- Oct 7, 2002
- Messages
- 158
The following code removes all interior colors and then highlights the row of the active cell in yellow:
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
Cells.Interior.Color = xlNone
ActiveCell.Cells.EntireRow.Interior.Color = vbYellow
End Sub
How can I modify this to allow some rows to be highlighted a different color?
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
Cells.Interior.Color = xlNone
ActiveCell.Cells.EntireRow.Interior.Color = vbYellow
End Sub
How can I modify this to allow some rows to be highlighted a different color?