See Andy's examples here
http://www.andypope.info/fun/clocks.htm
See Andy's examples here
http://www.andypope.info/fun/clocks.htm
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
thanks bro
thats what i want but i need it to be on a one individual cell
Good morning shilpz
Format cell A1 to a time format of your choice then run this macro. It will update the cell every second :
HTH![]()
Public CntTme As Double Sub StartClock() Sheets("Sheet1").Range("A1").Value = Now() CntTme = Now + TimeSerial(0, 0, 1) Application.OnTime CntTme, "'" & ThisWorkbook.Name & "'!StartClock", , True End Sub
DominicB
Please familiarise yourself with the rules before posting. You can find them here.
where do i copy the code to i dont understand it i formated the cell A! to time
ad pasted the forumula on a button but when i click the button
can you plz send it to me in a xls file plz
thanks in advance
Hi shilpz
Find zipped file, time.zip attached.
HTH
DominicB
Last edited by dominicb; 08-19-2008 at 04:30 AM.
I've put Domenic's code in this workbook, it's triggered when the workbook opens
You weren't there a minute ago Domenic!
Hi royUK
Great minds ... and all that kind of thingOriginally Posted by royUK
![]()
I actually called the module from the Workbook_Open event, and also added something into the Workbook_BeforeClose event cancelling the OnTime macro which can cause an error when the file is closed.
DominicB
Hello Roy,
I tried your code and the clock works fine. It is exactly what I want as I require the clock to run automatically when I open the workbook. The only problem is that when I save and close the workbook it re-opens again automatically. If I shut down Excel completely (i.e. "EXIT") this does not happen. I do not always want to shut down Excel as I have other workbooks open. Is there a fix for this problem?
I am using Excel 2003 with Windows XP
Thank You
Maltese Falcon
It happend to me also, what I did is...just disable the macro...again when I reopen it, I enable the same.
Senjuti
Its so nice, its helped me too...Thanks..a lot
Thanks for your Macro,It is working fine, again Thanks a lot.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks