Automatic Calculations on all Sheets apart from one

ElBB23

New Member
Joined
Feb 10, 2017
Messages
26
Hi all,

I have looked for an answer to this query for a few days but, I can't seem to find an answer that covers everything.

I have a workbook with several sheets, I want all of them to be able to calculate automatically and one to only calculate if it is clicked on. I found a solution that seemed to do this but when I clicked out of that sheet it turned all sheets to manual. I can find solutions where you have automatic calcs enabled on each sheet but, I would assume that would mean having to click on each sheet to make sure it calculates which isn't ideal if I have several sheets feeding into each other.

I apologise if this has been asked before but I cannot find it on any searches.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
This method works
- calculations are disabled in desired sheet when the workbook opens
- create a trigger (here = click a button) \ enable sheet calculation \ force a re-calc \ disable sheet calculation

To test
- add the code to your workbook
- save, close and re-open the workbook
- add formulas or change values in Sheet1 (values returned by formulas remain unchanged)
- click on button (values returned by formulas are updated)
- add formulas or change values in Sheet1 (values returned by formulas remain unchanged)

This prevents Sheet1 from calculating:
Code:
[I][COLOR=#ff0000]paste into [/COLOR][COLOR=#ff0000]ThisWorbook Module[/COLOR][/I]
Private Sub Workbook_Open()
    Sheets("Sheet1").EnableCalculation = False
End Sub

Clicking button with this code behind it forces re-calculation and then disables calcs in Sheet1
Code:
Private Sub CommandButton1_Click()
    With Sheets("Sheet1")
        .EnableCalculation = True
        .Calculate
        .EnableCalculation = False
    End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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