ManUBlueJay
Active Member
- Joined
- Aug 30, 2012
- Messages
- 320
- Office Version
- 365
- Platform
- Windows
I am trying to have excel log when any cell in Col E changes. I used the following Code
It works perfect when I hit enter after a change. However when either a mouse click or the tab key is used to move out of the cell after the change it does not work.
Any help would be appreciated.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 5 Then
ActiveCell.Offset(-1, -2) = Now()
End If
End Sub
It works perfect when I hit enter after a change. However when either a mouse click or the tab key is used to move out of the cell after the change it does not work.
Any help would be appreciated.
Last edited: