DPChristman
Board Regular
- Joined
- Sep 4, 2012
- Messages
- 191
- Office Version
- 365
- Platform
- Windows
I have a spreadsheet (form,really) that contains a lot of automatically updated fields from other spreadsheets.
Because of all the activity in this document, I don't want to lock any cells.
However, to give my users the ability to identify the current active cell.
I found an used this Worksheet_SelectionChange event by right clicking the tab, selecting view code, and pasting this
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.ScreenUpdating = False
Cells.Interior.ColorIndex = 0
Target.Interior.Color = vbCyan
Application.ScreenUpdating = True
End Sub
It works as advertised, but for some reason, it leaves all the other previously shaded rows un-shaded.
Is there a way to just highlight only the active cell?
The above script is supposed to do it, but apparently not
Because of all the activity in this document, I don't want to lock any cells.
However, to give my users the ability to identify the current active cell.
I found an used this Worksheet_SelectionChange event by right clicking the tab, selecting view code, and pasting this
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.ScreenUpdating = False
Cells.Interior.ColorIndex = 0
Target.Interior.Color = vbCyan
Application.ScreenUpdating = True
End Sub
It works as advertised, but for some reason, it leaves all the other previously shaded rows un-shaded.
Is there a way to just highlight only the active cell?
The above script is supposed to do it, but apparently not