Keeping moving

  • Thread starter wilchong via OfficeKB.com
  • Start date
W

wilchong via OfficeKB.com

In the cell D5 showing the time in the format: 9:23:43 (h:mm:ss), the time
will only update when I click on the cell D5. Therefore, is there any way to
keep "ss" moving without manually click on the cell?

Many thanks for any one advice.
Wilchong
 
B

Ben M. Schorr - MVP (OneNote)

B

Bob Phillips

Public nTime As Double

Public Sub TimeDisplay()
ActiveSheet.Range("D(").Value = Time
nTime = Now + TimeSerial(0, 0, 1)
Application.OnTime nTime, "TimeDisplay"
End Sub

Public Sub StopTimeDisplay()
Application.OnTime nTime, "TimeDisplay", , False
End Sub

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

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

Top