I am trying to enter a time stamp into column A when data is entered into column E, for a row, and I need the macro to loop through column E, and anywhere it is not blank place the time stamp in column A.
If data is entered E2 (E3, E4, E5, etc.) once the time stamp is entered into cell A[X], I need it to remain the same.
I have started with the code below, but not sure where to go from here. Can you please assist?
Sub timestamp()
On Error GoTo enditall
Application.EnableEvents = False
If Target.Cells.Column = 1 Then
With Target
If .Value <> "" Then
.Offset(0, 1).Value = Format(Now, "mm/dd/yyyy hh:mm:ss AM/PM")
End If
End With
End If
enditall:
Application.EnableEvents = True
End Sub
If data is entered E2 (E3, E4, E5, etc.) once the time stamp is entered into cell A[X], I need it to remain the same.
I have started with the code below, but not sure where to go from here. Can you please assist?
Sub timestamp()
On Error GoTo enditall
Application.EnableEvents = False
If Target.Cells.Column = 1 Then
With Target
If .Value <> "" Then
.Offset(0, 1).Value = Format(Now, "mm/dd/yyyy hh:mm:ss AM/PM")
End If
End With
End If
enditall:
Application.EnableEvents = True
End Sub