#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default timer

Hi all,

HYCH.


Am looking for some code to creat a countdown timer, was hoping for
hh:mm:ss & if possible lower, not sure if it is possible, but any help
would be greatly appreciated.




Steve
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default timer

On 28 Jan, 12:54, Steve wrote:
Hi all,

HYCH.

Am looking for some code to creat a countdown timer, was hoping for
hh:mm:ss & if possible lower, not sure if it is possible, but any help
would be greatly appreciated.

Steve


Forget this, got the timer sorted,, found old post on this site.

:)

But!

anyway to get a page to refresh after 20 secs?

Steve
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 59
Default timer

On Jan 28, 1:15 pm, Steve wrote:
On 28 Jan, 12:54, Steve wrote:

Hi all,


HYCH.


Am looking for some code to creat a countdown timer, was hoping for
hh:mm:ss & if possible lower, not sure if it is possible, but any help
would be greatly appreciated.


Steve


Forget this, got the timer sorted,, found old post on this site.

:)

But!

anyway to get a page to refresh after 20 secs?

Steve


Hi,

Try this.

Paste this into the worksheet's module:-

Private Sub Worksheet_Activate()
Call Recalculate
End Sub

Public Sub Recalculate()
Calculate
Application.OnTime earliesttime:=Now + TimeValue("00:00:20"), _
procedu="Recalculate"
End Sub

This should recalculate your worksheet every 20 seconds. To change
the recalculation period just change the value in brackets after
'TimeValue'

Hope this helps,

Regards,
Matt Richardson
http://teachr.blogspot.com
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default timer

You may want to take a look at Chip Pearson's notes on .ontime:
http://www.cpearson.com/excel/OnTime.aspx

Steve wrote:

On 28 Jan, 12:54, Steve wrote:
Hi all,

HYCH.

Am looking for some code to creat a countdown timer, was hoping for
hh:mm:ss & if possible lower, not sure if it is possible, but any help
would be greatly appreciated.

Steve


Forget this, got the timer sorted,, found old post on this site.

:)

But!

anyway to get a page to refresh after 20 secs?

Steve


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default timer

On 28 Jan, 13:29, Matt Richardson wrote:
On Jan 28, 1:15 pm, Steve wrote:





On 28 Jan, 12:54, Steve wrote:


Hi all,


HYCH.


Am looking for some code to creat a countdown timer, was hoping for
hh:mm:ss & if possible lower, not sure if it is possible, but any help
would be greatly appreciated.


Steve


Forget this, got the timer sorted,, found old post on this site.


:)


But!


anyway to get a page to refresh after 20 secs?


Steve


Hi,

Try this.

Paste this into the worksheet's module:-

Private Sub Worksheet_Activate()
Call Recalculate
End Sub

Public Sub Recalculate()
Calculate
Application.OnTime earliesttime:=Now + TimeValue("00:00:20"), _
procedu="Recalculate"
End Sub

This should recalculate your worksheet every 20 seconds. *To change
the recalculation period just change the value in brackets after
'TimeValue'

Hope this helps,

Regards,
Matt Richardsonhttp://teachr.blogspot.com- Hide quoted text -

- Show quoted text -


many thanks,

works great,

5 star service as usual

Steve
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
Timer in VBA peyman Excel Discussion (Misc queries) 2 October 5th 07 06:53 PM
Timer Brandon H Excel Discussion (Misc queries) 5 August 9th 07 01:54 PM
Timer Vijay Excel Worksheet Functions 1 April 6th 07 11:00 AM
Lap-timer kabildgaard Excel Discussion (Misc queries) 0 August 11th 06 03:26 PM
Stopping a Timer / Running a timer simultaneously on Excel Paul23 Excel Discussion (Misc queries) 1 March 10th 06 12:08 PM


All times are GMT +1. The time now is 03:06 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"