Auto Calculate Spreadsheet at a certain time

SteveK123

New Member
Joined
Aug 21, 2011
Messages
3
Hi All,

I there a way to set up a spreadsheet so that it opens at a certain time (say 6:30am),calculates all of the data and then saves and closes once the calculation is complete.

I have a morning meeting spreadsheet which takes roughly 30minutes to calculate and I need it to be ready for first thing in the morning.

It needs to be closed however when the meeting takes place as it needs to be read-write status when whoever is running the meeting that day opens it.

I hope this makes sense. :confused:
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Along the lines of what Martin said, do you have screen updating turned off while your code runs? Might help speed things up a little.
 
Upvote 0
In my not so humble opinion no workbook of this magnitude belongs in a daily meeting.

However, it is should be easy to schedule a task to open a workbook. The only problem would be how to save/close it.

I'm puzzled as to why in the world you'd be using such a large workbook in this way - part of a meeting, needing to be shared, different users requiring write access... Everything smells bad here. Can you elaborate on what you are doing? There must be a better way to manage your data and still provide adequate reporting.
 
Upvote 0
Without going into too much detail about the spreadsheet, it calculates a large amount of process data to give averages, standard deviation, trends and other information to indicate the way the plant has been running for the last 1 day, 3 days and 30 days.

The process data is being pulled directly from the plant operating systems and there is no way of speeding this.

Is it possible to do a macro which will run the calculate at a certain time, I am able to close the spreadsheet in the morning ready for the meeting.

Thanks
 
Upvote 0
I also forgot to mention the main bottle-neck that slow all of this down. Our works network is rediculously slow and take forever to do anything even simple calculations.
 
Upvote 0
You could use the OnTime method.

Your macro would essentially be a one-liner

Code:
Sub MyMacro()
Calculate
Application.OnTime TimeValue("06:30:00"), "MyMacro"  
End Sub
 
Upvote 0
I would assume you can also run a scheduled task to open the workbook each morning (though, why isn't it possible to just leave it open?).
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,542
Messages
6,179,424
Members
452,914
Latest member
echoix

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