Time Stamp

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

i wish to record in my current cell (whichever i have selected) to record
the current time. I need to show hours, minutes and seconds. I have looked
atthe Ctrl-Shift-; option but it doesnt record seconds option.

How can record this information at a push of a button

Thanks
 
Sub NOWTIME()
ActiveCell.Value = Format(Now(), "h:mm:ss AM/PM")
End Sub

Assign the above to a button.


Gord Dibben MS Excel MVP
 
Thank you works great

Gord Dibben said:
Sub NOWTIME()
ActiveCell.Value = Format(Now(), "h:mm:ss AM/PM")
End Sub

Assign the above to a button.


Gord Dibben MS 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

Back
Top