I've added the following code to highlight cells when they change
Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "A1:IV65536"
On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
.Interior.ColorIndex = 3
End With
End If
Const WS_RANGE_B As String = "X2:AA5000"
If Not Intersect(Target, Me.Range(WS_RANGE_B)) Is Nothing Then
With Target
.Interior.ColorIndex = 27
End With
End If
ws_exit:
Application.EnableEvents = True
End Sub
All works as I want but the "undo" function in excel is now not working. When I remove the code it works again?
Any ideas
Thanks
Rory
Bookmarks