Time please

  • Thread starter Thread starter Stig - tame racing driver
  • Start date Start date
S

Stig - tame racing driver

Can you add the current time to a cell which auto updates by the second ??

E.g. =now()

Regards
Derek
 
i'm not sure i would ever do it, with the system timer in the bottom right
corner of most screens and the time only changing every minute, but here you
go. Put in a module and don't plan on running other code.

Sub MyTimer()
Do
Application.Wait Now + TimeValue("00:00:01")
sheet1.cells(1,1)="=now()"
Loop
End Sub
 
Nice one..........

Cheers for that


John Bundy said:
i'm not sure i would ever do it, with the system timer in the bottom right
corner of most screens and the time only changing every minute, but here
you
go. Put in a module and don't plan on running other code.

Sub MyTimer()
Do
Application.Wait Now + TimeValue("00:00:01")
sheet1.cells(1,1)="=now()"
Loop
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

Back
Top