Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to perform calculations at timed intervals. I wrote the
following macro: Public Function CalcNow(CurTime As Date) As Boolean Static bInitialized As Boolean Static StartTime As Date, EndTime As Date Dim TimeDiff As Double If Not bInitialized Then StartTime = Now() EndTime = Now() bInitialized = True End If EndTime = Now() TimeDiff = (EndTime - StartTime) * 86400 If TimeDiff 5 Then Application.Calculate StartTime = Now() End If End Function The current time is in cell A1 and I pass that value to trigger the running of the function every second - BUT since I am in manual calculation mode, cell A1 does not update - UGH!! Any suggestions are appreciated. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I calculate spreadsheet at five minute intervals | Excel Discussion (Misc queries) | |||
Using Excel to calculate future dates with various intervals | Excel Worksheet Functions | |||
Looking for a formula to calculate date intervals | Excel Worksheet Functions | |||
Creating Formulas In Excel To Calculate Time Intervals | Excel Worksheet Functions | |||
How can I automate a macro to run in timed intervals | Excel Programming |