Hi there!
This script changes the cell color when doubleclicked, but i don't want it to "work" for certain rows and columns because they are headers and other text.
So...i want this script to be excluded from:
row
1
2
3
4
5
12
21
And column:
A
I know you smart people knows how to fix this?
This script changes the cell color when doubleclicked, but i don't want it to "work" for certain rows and columns because they are headers and other text.
So...i want this script to be excluded from:
row
1
2
3
4
5
12
21
And column:
A
I know you smart people knows how to fix this?

Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True
Target.Interior.ColorIndex = IIf(Target.Interior.ColorIndex >= 1, -4142, 15)
End Sub