Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35
Default Continuous calculation of a formula.

I created a Countdown clock to an event in our company. Just the actual
date minus todays date. Anyway, it just calculates days, hours, mins, secs
until an event. The problem is that you either have to hit F9 or some other
cell to get it to re-calculate the formulas. I set up a macro and tied it to
a refresh button but does anyone know how I could get the spreadsheet to
calculate every second automatically or perhaps another way to add a
Countdown clock to my spreadsheet?
Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Continuous calculation of a formula.

Hi,

Don't you already have an answer on this one? Anyway,

A repeating sub routine
==========================

Private Sub Workbook_Open()
Application.OnTime Now + TimeValue("00:00:01"), "my_Procedure"
End Sub

Sub my_Procedure()
Application.OnTime Now + TimeValue("00:00:01"), "my_Procedure"
ActiveSheet.Calculate
End Sub

Put these into the thisWorkbook object of the VBA editor. It will start
when you open the workbook.


--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Husker87" wrote:

I created a Countdown clock to an event in our company. Just the actual
date minus todays date. Anyway, it just calculates days, hours, mins, secs
until an event. The problem is that you either have to hit F9 or some other
cell to get it to re-calculate the formulas. I set up a macro and tied it to
a refresh button but does anyone know how I could get the spreadsheet to
calculate every second automatically or perhaps another way to add a
Countdown clock to my spreadsheet?
Thanks!

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
Continuous calculation of a formula. Husker87 Excel Discussion (Misc queries) 1 February 12th 09 07:24 PM
Continuous calculation of a formula Husker87 Excel Worksheet Functions 0 February 12th 09 06:59 PM
Continuous Averages Formula Mof Excel Worksheet Functions 2 January 27th 06 06:23 PM
continuous sum formula needed NN Excel Discussion (Misc queries) 2 November 4th 05 07:49 PM
Making a formula continuous Neil_Pattison Excel Discussion (Misc queries) 4 October 7th 05 06:09 PM


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