Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
My clock
Hi,
I put the below formula in the cell A1, i need to refresh it every one second so that it might look like a clock, can anybody help? =NOW() |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
My clock
Hi,
Alt+F11 to open vb editor, right click 'ThisWorkbook' and insert module and paste the code below in. Run the sub StartClock to start it and always rememeber to stop it when exiting the workbook by running StopClock Dim Go As Boolean Sub StartClock() Go = True MyClock End Sub Sub MyClock() If Go Then Worksheets("Sheet1").Cells(1, 1).Value = Format(Now, "dd/mm/yyyy hh:mm:ss") Application.OnTime (Now + TimeSerial(0, 0, 1)), "MyClock" End If End Sub Sub StopClock() Go = False End Sub Mike "Pietro" wrote: Hi, I put the below formula in the cell A1, i need to refresh it every one second so that it might look like a clock, can anybody help? =NOW() |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Incremental time values based upon clock in and clock out times | Excel Discussion (Misc queries) | |||
How do I calculate time in excel (clock in and clock out | Excel Discussion (Misc queries) | |||
Change EXCEL Clock to Standard Clock or Military Time | Excel Worksheet Functions | |||
Start Clock/Stop Clock | Excel Discussion (Misc queries) | |||
Clock | Excel Discussion (Misc queries) |