Overkill32
New Member
- Joined
- May 13, 2011
- Messages
- 49
Hello,
I have a macro that creates a timestamp when i change the value of a cell. Until recently it was working fine but now it's as if excel doesn't start the macro when I change the cell... any pointers?
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Target.Row > 22 Then
If Target.Column = 1 Or Target.Column = 2 Then
If Target.Column = 1 Then
Target.Offset(, 7) = Time
Else
Target.Offset(, 6) = Time
End If
End If
End If
Application.EnableEvents = True
End Sub
I have a macro that creates a timestamp when i change the value of a cell. Until recently it was working fine but now it's as if excel doesn't start the macro when I change the cell... any pointers?
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Target.Row > 22 Then
If Target.Column = 1 Or Target.Column = 2 Then
If Target.Column = 1 Then
Target.Offset(, 7) = Time
Else
Target.Offset(, 6) = Time
End If
End If
End If
Application.EnableEvents = True
End Sub