Inquiring_Minds
New Member
- Joined
- Jan 5, 2023
- Messages
- 10
- Office Version
- 2016
- Platform
- Windows
Everyone was already helpful about the click colors, but I was wondering if there was a way that I could only apply the click colors to certain cell ranges ("C2:C4"), ("E2:E4") and ("G2:G4"). I feel pretty dumb not knowing some of this, lol. This is what I currently have.
Sub NoFilling()
Selection.Interior.Color = xlNone
End Sub
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Target.Interior.Color = vbGreen
End Sub
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
Target.Interior.Color = vbRed
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Target.Interior.ColorIndex = xlNone
End Sub
Sub NoFilling()
Selection.Interior.Color = xlNone
End Sub
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Target.Interior.Color = vbGreen
End Sub
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
Target.Interior.Color = vbRed
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Target.Interior.ColorIndex = xlNone
End Sub