timestamp

  • Thread starter Thread starter Peri
  • Start date Start date
P

Peri

Is there a way to show the date and time a cell was changed in the cell next
to it, instead of using track changes and getting the changes listed in a
new sheet or highlited - i want them to be in the next cell.
for instance:
cell c95 was blank - when the user entered number 123722 in c95 i want D95
to show the date/time...
any suggestions?
Thanks!
Peri
 
Thank you for the response but now() will update every time changes are
made...i need it to stamp the time c95 was changed and not change the time
again...
 
Private Sub Worksheet_Change(ByVal Target As Range)

On Error GoTo ws_exit:
Application.EnableEvents = False
If Target.Address = "$C$59" Then
With Target
.Offset(0, 1).Value = Format(Now, "dd mmm yyyy hh:mm")
End With
End If

ws_exit:
Application.EnableEvents = True
End Sub
'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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

Back
Top