how to update date and time automatically once id is entered in excel vba code example
Example 1: how to update date and time automatically once id is entered in excel vba
If Target.Column = 2 And Target.Offset(0, 3).Value = "" Then
Example 2: how to update date and time automatically once id is entered in excel vba
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 2 And Target.Offset(0, 3).Value = "" Then
Target.Offset(0, 3) = Format(Now(), "HH:MM:SS")
End If
End Sub