VBA: Is it possible to turn off autocalculate for one sheet only?

Captain Smith

Active Member
Joined
Feb 28, 2003
Messages
324
Using VBA, is it possible to turn off the autocalculate for one sheet only?
Sheet3 has a lot of calculating formulas, I just want to disable this one sheet so that
the autocalculate works on the other sheets (the macro needs those sheets to autocalculate).

If this cannot be done, as an alternative, is it possible at the beginning of the macro that the cells with formulas in a certain range can be added a ' at the beginning of the formula string, then at the end of the macro put the ' back on, to prevent a bunch of needless calculating during the running of the macro?


Thanks.
 
Last edited:

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
How about set Application.Calcuation to xlmanual then calculate the sheet that you want.

e.g sheet1.calculate
 
Upvote 0
Hi

If you want the other worksheets to keep calculating automatically, you can also use:

Code:
sheet3.EnableCalculation=False
 
Upvote 0
Hi

If you want the other worksheets to keep calculating automatically, you can also use:

Code:
sheet3.EnableCalculation=False

Sorry for the necrobump. Which VBA section do you put this? Would this just be a new module?
 
Upvote 0
Hi

You can place it wherever you want. As soon as it's executed the sheet will stop updating automatically until you enable calculation again.

For ex., if you paste it into the Open event of the workbook it will always be executed when you open the workbook.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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