time stamping

  • Thread starter Thread starter sunroyal
  • Start date Start date
S

sunroyal

Is there a way to have a macro button enter the current time? I woul
like to to run on the toolbar or when you type in a certain cell
 
Sure:

Sub Datestamp()
Sheets(2).Cells(2, 3).Value = TimeValue(Now)
End Sub
 
If you want automatic
right click on sheet tab>view code>copy/paste this>SAVE.
Now when you make a change in a10 a11 will reflect the current time

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$10" Then [a11] = Time
End Sub
 

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

request for time interval worksheet function 1
Date Stamp 7
Insert Time Stamp when macro is run 3
Time Stamp in Excel Mobile, Windows Mobile 5.0 1
Time stamp 3
Time Stamp 8
autotab 4
Current Time 6

Back
Top