View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.programming
JE McGimpsey JE McGimpsey is offline
external usenet poster
 
Posts: 4,624
Default Enter current time into cell hh:mm:ss

One way:

Public Sub InsertTime()
With ActiveCell
.Value = Time
.NumberFormat = "hh:mm:ss"
End With
End Sub


In article ,
rglasunow
wrote:

I am trying to create a macro that records the current time off the
clock on my computer. I am aware of the short cut (ctrl+shift+;).
However, this does not go into the actual seconds. Is there a way to
record the seconds as well?