#1   Report Post  
jason l
 
Posts: n/a
Default count down

i wish to set up a countdown timer showing date + hours, minutes and seconds
i have used the formula =now() for todays correct date and time and a fixed
date to countdown to but i cannot get a formula to work to count it down....
  #2   Report Post  
Tom Hewitt
 
Posts: n/a
Default

Jason,

I know what you need to do just not 100% how to do it. Your problem is that
the now formula will only calculate when you click into it. Your need a
timing rountine with VBA to calc that cell every so many minutes seconds.
I'm at a loss of how to do a VBA timing rountine thou. Sure someone else
will know.

Cheers
Tom

"jason l" wrote:

i wish to set up a countdown timer showing date + hours, minutes and seconds
i have used the formula =now() for todays correct date and time and a fixed
date to countdown to but i cannot get a formula to work to count it down....

  #3   Report Post  
P Sitaram
 
Posts: n/a
Default

See if you can adapt some of this code:

http://www.cpearson.com/excel/ontime.htm

  #4   Report Post  
Tom Hewitt
 
Posts: n/a
Default

,

Heres what you need to do.

3 Macros As follows

1.

Sub Start()
'
' The_Sub Macro
' Macro recorded 06/04/2005 by Tom Hewitt
'


'
Calculate
'
RepeatTimer

End Sub

==========
The first Macro starts the calucation process.


Macro 2.

Sub RepeatTimer()
'
' Starttimer Macro
' Macro recorded 06/04/2005 by Tom Hewitt
'

RunWhen = Now + TimeSerial(0, 0, 1)
Application.OnTime earliesttime:=RunWhen, procedu="Start", _
schedule:=True
End Sub

=========
This repeats the process. On the first line alter the number 1 to the
number of seconds you require the calculation interval to be.

Macro 3.

Sub StopTimer()
'
' StopTimer Macro
' Macro recorded 06/04/2005 by Tom Hewitt


'
On Error Resume Next
Application.OnTime earliesttime:=RunWhen, _
procedu=cRunWhat, schedule:=False
End Sub

========
This stops the timer.

Enjoy. Adapted from the linked site mentioned in the thread above.

Cheers
Tom Hewitt



"P Sitaram" wrote:

See if you can adapt some of this code:

http://www.cpearson.com/excel/ontime.htm


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Match Last Occurrence of two numbers and Count to Previous Occurence Sam via OfficeKB.com Excel Worksheet Functions 33 April 4th 05 02:17 PM
Filter Count of Records Retrieved. amkazen Excel Discussion (Misc queries) 2 March 31st 05 10:03 PM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM
Count number to reach a cumulative value Bruce Excel Worksheet Functions 5 January 25th 05 05:14 PM
Count If Formula Mimi Excel Worksheet Functions 0 November 5th 04 11:55 AM


All times are GMT +1. The time now is 09:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"