Excel runs slow/long re-calculate times

PhantomOak

New Member
Joined
Apr 20, 2011
Messages
31
I changed a workbook I have to hold several hundred (maybe 200-300) Array Foruma.

It worked fine on friday, and now it is taking a god aweful amount of time every time I enter a value in any cell. I have never had a problem before with any workbook, even with MUCH larger number of forumlas.

Also, somehow it is accross most of my workbooks, only the simplest are spared.

Moreover, it will reach "100%" and then start again, sometimes going to 5+ itterations, even in workbooks that only have Pivot Tables as the complicating factor.



It does this on several work stations.

I would post my file, but this site does not let me.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Switch auto calulate off and when you want it to calculate then press F9, check your settings for the auto calculate
 
Upvote 0
The arrays ALL look like "iferror(Vlookup(X,X:X,X,False),"") or "if(Vlookup(etc)="Whatever",vlookup(etc),"")

I THINK I found the problem being the line in Private Sub Workbook_Open()
Code:
Application.Calculation = xlAutomatic
What I intended to do was prevent the workbook from opening in manual (because it confuses everyone and the workbooks are not that large). What is seems to do is recalculate the workbook every time anything cell changes.

What are some commands in VBA can I use to recalculate(say, at the end of a sub). Ie, claculate one time, calculate one specific sheet, calculate sheet on open, etc...
 
Upvote 0
In the workbook event for on open place in this

Application.Calculation = xlManual

Behind each worksheet you can view the code and use Activate to then do the

Application.Calculation = xlAutomatic

And you can add that line after it runs a sub routine.
 
Upvote 0

Forum statistics

Threads
1,224,596
Messages
6,179,807
Members
452,944
Latest member
2558216095

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