The Dutchman
Board Regular
- Joined
- Apr 10, 2008
- Messages
- 72
I have a named range called "fill_range" that, when you click on any cell in this range it will either place an "X" in the cell or if the cell has contents, clear the contents.
The code I have which fives me an End If blocking error message is...
Thx
The code I have which fives me an End If blocking error message is...
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("fill_area")) Is Nothing Then
If Not (IsEmpty(ActiveCell)) Then ActiveCell.ClearContents
Else
ActiveCell.Value = "X"
End If
End If
End
Thx