2010 MultiThreadedCalculation Incompatible with Range.Calculate

NDeanMeyer

New Member
Joined
Dec 28, 2006
Messages
17
Excel 2010 becomes unstable when Application.MultiThreadedCalculation.Enabled = True and when Range.Calculate is used in VBA. Sometimes it locks up during the calculation. Sometimes it crashes upon the next <F9> recalc. Sometimes it locks up on saving the workbook.

My application employs lots of UDFs, and memory arrays which pass data from one UDF to another. It works impeccably in Excel 2003 and 2007.

Patch: I set "Application.MultiThreadedCalculation.Enabled = False" before a "Range.Calculate" and back on afterwards. That seems to solve the problem.

Does anybody know anything about this?

(Cross-posted on microsoft.public.excel.programming.)
 
Last edited:

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
dear mr meyer. bless your cotton socks. lord knows how you figured this was what was causing your instability but it has solved my mystery crashing problem.

i basically have the same situation - workbook rich with udf's some of which are array functions shunting large quantities of data into and out of the front end. crashing, although replicable, is unpredictable. as in you can always get a crash at some known conditions,but what causes those conditions to be unstable is unclear.

i couldn't find your parallel post on the other forum. any response there?
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,254
Members
452,900
Latest member
LisaGo

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