Clarkie001
IS-IT--Management
Hi,
I have the following code which works fine for what I want, but when I select another cell within the range of C1 to C8 I need the previous cells Interior to change back to xlnone.
Can anyone shed any light on this?....Thanks in advance.
Clarkie
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If ActiveCell >= Range("C1"
And ActiveCell <= Range("C8"
Then
With ActiveCell.Interior
.ColorIndex = 41
.Pattern = xlSolid
End With
Range("A1"
.Value = ActiveCell
Else
DoEvents
End If
End Sub
I have the following code which works fine for what I want, but when I select another cell within the range of C1 to C8 I need the previous cells Interior to change back to xlnone.
Can anyone shed any light on this?....Thanks in advance.
Clarkie
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If ActiveCell >= Range("C1"
With ActiveCell.Interior
.ColorIndex = 41
.Pattern = xlSolid
End With
Range("A1"
Else
DoEvents
End If
End Sub