otisvillain
Board Regular
- Joined
- Mar 23, 2015
- Messages
- 77
Hey all,
This is a code I have for highlighting the active cell, so that it sticks out when keying through a worksheet:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = xlNone
Target.Interior.ColorIndex = 28
End Sub
The problem is this: It removes all fill from the worksheet, and I need to keep certain columns highlighted. I'd like to have the columns keep their fill, while only the active cell highlights. Cannot find a way around this. Any ideas?
Thanks for the help
This is a code I have for highlighting the active cell, so that it sticks out when keying through a worksheet:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = xlNone
Target.Interior.ColorIndex = 28
End Sub
The problem is this: It removes all fill from the worksheet, and I need to keep certain columns highlighted. I'd like to have the columns keep their fill, while only the active cell highlights. Cannot find a way around this. Any ideas?
Thanks for the help