Optimizing VBA: Multithreading a Range Calculation

Telefonica

New Member
Joined
Apr 7, 2011
Messages
10
I have a very large range of formulas that spans E6:YO6052.

Each cell in the range performs a few simple calculations (some multiplication and addition). There are no dependents inside the range (i.e. all the formulas reference cells outside the range and these cells are not dependent on any values inside the range).

I'm trying to optimize the calculation of the range. Originally, I used RangeCalculateRowMajorOrder. My reasoning was excel wouldn't look for dependents and references using this method, but I'm wondering if there's a more efficient way of doing it. I'd like to take advantage of excel's multithreading capabilities, but I also don't want excel to check for dependents, etc. (because there are none in my range).

Would xlThreadModeAutomatic and another method of calculation be more efficient?

FYI - I've set calculation mode to manual so I can have full control of when certain cells need to be calculated, and when they can just sit there. I'm using 2007.

Thanks in advance.


Regards,
Adam
 
Last edited:

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hmmmm.... I believe my machine has two processors. Maybe, could I split up my range into two sections and have one processor calculate one half with RangeCalculateRowMajorOrder and the other processor hack away at the other half?
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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