G
Guest
Hi,
I'm running on Excel 97 and use this event macro to keep history of
modifications :
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Target.Column = 1 Then
Cells(Target.Row, Target.Column + 1) = Now
Cells(Target.Row, Target.Column + 2) =
CreateObject("Wscript.Network").UserName
End If
Application.EnableEvents = True
End Sub
I also use, for the first column cells, the "Validation" tool allowing only
three param values in the cell.
Problem : the event macro works by typing the param value and pressing
"enter" key but NO by selecting a direct value within the combo list.
Any idea to make it work ?! Thanks in advance...
I'm running on Excel 97 and use this event macro to keep history of
modifications :
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Target.Column = 1 Then
Cells(Target.Row, Target.Column + 1) = Now
Cells(Target.Row, Target.Column + 2) =
CreateObject("Wscript.Network").UserName
End If
Application.EnableEvents = True
End Sub
I also use, for the first column cells, the "Validation" tool allowing only
three param values in the cell.
Problem : the event macro works by typing the param value and pressing
"enter" key but NO by selecting a direct value within the combo list.
Any idea to make it work ?! Thanks in advance...