I'd like to show a clock in cell A1 of Excel 2007. I'm familiar with NOW() and TODAY() but it doesn't refresh itself every 1 minute like I want it to. You know, like a running clock. I just want the current time in h:mm to be in cell A1. Is this possible?
From this clock I will do further calculations like How long has it been since I last did Activity X, Y, and Z. Thanks SO.
Found the code that I referred to in my comment above. To test it, do this:
Sheet1
change the cell height and width of sayA1
as shown in the snapshot below.Start Timer
button on the sheet and click onAssign Macros
. SelectStartTimer
macro.End Timer
button on the sheet and click onAssign Macros
. SelectEndTimer
macro.Now click on Start Timer button and you will see the time getting updated in cell
A1
. To stop time updates, Click on End Timer button.Code (TRIED AND TESTED)
SNAPSHOT
See the below code (taken from this post)
Put this code in a Module in VBA (Developer Tab -> Visual Basic)
You can invoke the "StartTimer" function when the workbook opens and have it repeat every minute by adding the below code to your workbooks Visual Basic "This.Workbook" class in the Visual Basic editor.
Now, every time 1 minute passes the Timer procedure will be invoked, and set cell A1 equal to the current time.