NOW() Function PROBLEM SOLVED, NICELY TOO

elgringo56

Well-known Member
Joined
Apr 15, 2002
Messages
869
When using the NOW() function, the date and time are displayed, but the time remains static from that point on. Is there a function that will allow the date and time to display and the time to incriment with the clock?
This message was edited by elgringo56 on 2002-08-22 23:37
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
If what you need is to have a "live" clock, then the NOW() function is partially your solution. You know that the NOW() function recalculates everytime any cell changes ? not *all* the time...
 
Upvote 0
Thats kewl, the problem is, I have no cells changing. My sheet is full of menu buttons that get selected, and that doesn't change the time.
 
Upvote 0
Hi,

The NOW() function is volatile, so it will update at any worksheet change.

If you are looking for a clock timer in an Excel worksheet function, I think you would have to use VBA in a userform or have an event macro which is triggered by time increments, possibly by changing an "unused" cell. This would probably slow your spreadsheet to a crawl.
 
Upvote 0
Jay, that really isn't a problem as this sheed does nothing but sit there and wait for some one to click on a button to iniate some task. It is the main page of a multi page task group and is what is up most of the time in the store in a just sit there mode. I thought it would be nice if the time kept up in the header. However, I have know idea in the man in the moon how to do that.
 
Upvote 0
Well This will do it and leave you working give it a try.

Sub Z()
Application.OnTime now + TimeValue("00:00:1"), "Z"
If Range("a1").Value <> now() Then Calculate
End Sub


Brett
 
Upvote 0
Hi Brett,

Nice job.

Another option to try...

<pre>Sub test()

With Application
.OnTime Now, "test"
.Caption = Now
End With
End Sub</pre>
 
Upvote 0

Forum statistics

Threads
1,214,611
Messages
6,120,513
Members
448,967
Latest member
screechyboy79

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top