Time Stamp-With Change

  • Thread starter Thread starter AntonyY
  • Start date Start date
A

AntonyY

I seen many posts on in this forum on time stamps. My problem this tha
in a1:a10 are going to be the entries. I need upon each entry into eac
cell a time stamp in b1:b10, but I need this to be hard coded so that i
I went back in a1and made a change it wouldn't change the time again i
b1.

Regards

Anton
 
Antony

Try this in a worksheet module.

Right-click on your sheet tab and "View Code".

Paste in there.

Private Sub Worksheet_Change(ByVal Target As Range)
'Col B time will not change if data in Col A is edited
On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("A1:A10")) Is Nothing Then
With Target
If .Value <> "" And .Offset(0, 1).Value = "" Then
.Offset(0, 1).Value = Format(Now, "hh:mm:ss")
End If
End With
End If
ws_exit:
Application.EnableEvents = True
End Sub

Gord Dibben Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Time Stamp without change 3
Time stamp 3
Excel If Then Question - Part 2 3
Auto Stamp Date 13
Time Stamp 8
Updated times stamp of last change 1
How to determine the combination of stamps? 3
Time stamp in Excel Sheet 3

Back
Top