Auto Calc

advmold

New Member
Joined
Mar 30, 2005
Messages
9
Hello all,

I have a excel file that is ALWAYS open on a terminal computer. The excel file is a shared workbook and is used for scheduling porposes. What I need to happen is every day at 12:00am recalc the spreed sheet so that the date formulas that I am using get re-indexed. Is there a timmer function or something else I can try. I thought about scheduling a MS task to close and reopen the file but, if I can get excel to calc that would be great.

Thanks
Chris
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Have a look at:
Code:
Application.OnTime
in the help file. Should do exactly what you're after.
 
Upvote 0
Why not just have the Auto Calc feature of the Excel spreadsheet turned on?

Tool | Options | Calculation | Automatic
 
Upvote 0
I have Tool | Options | Calculation | Automatic turned on but last night I left the file open all night and it did not go to the next day. I think that a change needs to happen in order for that to happen, or the auto calc feature.
 
Upvote 0
Ah, now I think I see what you are getting at. Check out Agent Smith's reply. I think that should do what you want.
 
Upvote 0
Due to my ignorance of VB I am not sure how to make this work. I found a wep page that looks like it will do the job but I think I am missing something. This is what I got.
http://www.cpearson.com/excel/ontime.htm

Sub StartTimer()

RunWhen = Now + TimeSerial(0, 0, cRunIntervalSeconds)
Application.OnTime earliesttime:=RunWhen, procedure:=cRunWhat, _
schedule:=True
End Sub

Sub The_Sub()
'
' your code here
'
StartTimer

End Sub

What would be "MY CODE"???
 
Upvote 0

Forum statistics

Threads
1,214,414
Messages
6,119,375
Members
448,888
Latest member
Arle8907

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top