Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Excell formula or setting to recalculate periodically.

How can I set up a count down clock in Excell that recalculates a formula on
a repeating basis, not just when the workbook opens or the spreadsheet is
recalculated manually.?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Excell formula or setting to recalculate periodically.

You can create an Event Macro that will refresh the formulas periodically:

Public whn As Double
Public Const T = 2 ' two seconds
Public Const macroo = "refresh" ' the name of the procedure to run

Sub refresh()
Application.CalculateFull
StartTimer
End Sub


Sub StartTimer()
whn = Now + TimeSerial(0, 0, T)
Application.OnTime EarliestTime:=whn, Procedu=macroo, Schedule:=True
End Sub


Sub StopTimer()
On Error Resume Next
Application.OnTime EarliestTime:=whn, Procedu=macroo, Schedule:=False
End Sub



Macros are very easy to install and use:

1. ALT-F11 brings up the VBE window
2. ALT-I
ALT-M opens a fresh module
3. paste the stuff in and close the VBE window

If you save the workbook, the macro will be saved with it.

To use the macro from the normal Excel window:

1. ALT-F8
2. Select the macro, in this case StartTimer
3. Touch Run



To remove the macro:

1. bring up the VBE window as above
2. clear the code out
3. close the VBE window

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm


If you want to stop the repeating process, run StopTimer


--
Gary''s Student - gsnu200858


"Duane S." wrote:

How can I set up a count down clock in Excell that recalculates a formula on
a repeating basis, not just when the workbook opens or the spreadsheet is
recalculated manually.?

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
formula to update dates periodically Graham New Users to Excel 3 April 15th 08 03:17 AM
recalculate page breaks after setting Zoom in pagesetup Par Excel Discussion (Misc queries) 3 June 21st 07 03:24 PM
Question on setting up excell to solve a math problem frank c Excel Worksheet Functions 3 October 30th 06 03:30 AM
I need help setting up a financial formulain in Excell ozarkfellow Excel Worksheet Functions 1 January 2nd 06 09:56 PM
setting up excell to add and subtract numbers. Heartworks Excel Discussion (Misc queries) 1 December 27th 05 01:55 PM


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