I have a list of names in cells C6:C17. If a user changes anything in this range I want to record the user name and date. The below macro serves this purpose to an extent.
This event driven macro is fired if the user goes into the cell and then makes NO changes. How can I get the macro to check if the cell value has actually changed?
Thanking you all in advance.
Richard
This event driven macro is fired if the user goes into the cell and then makes NO changes. How can I get the macro to check if the cell value has actually changed?
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
[INDENT]If Not Intersect(Target, Range("C6:C17")) Is Nothing Then
[INDENT]Target.Offset(0, 5).Value = Application.UserName
Target.Offset(0, 6).Value = Now
[/INDENT]End If
[/INDENT]End Sub
Thanking you all in advance.
Richard