Excel Turn On Manual Calculation Mac

  1. Excel Calculation Changes To Manual
  2. Excel Turn On Manual Calculation Mac 10
  3. Excel Turn On Manual Calculation Mac And Cheese
Excel Turn On Manual Calculation MacCalculation
Active5 years, 1 month ago

I have a large spreadsheet with a lot of built-in circular references. I have built in VBA code to set to manual and iterative calculation on opening and also code to force a calculation on workbook open after I set to iterative calculation. However, it appears that the workbook tries to calculate before even running this VBA code on opening, such that if the workbook is already set to automatic calculation with no iterative calculation, it runs the workbook and then crashes because of the circular references.

I know I can set my own Application settings to always have iterative calculation, but this workbook is shared with others who may not have those same Application settings. Is there a way to halt the calculation on opening until the code has set the application to iterative calculation.

Thanks.

MichaelMichael

VBA – Turn Automatic Calculations Off (or On) Whenever you update a cell, Excel goes through a process to recalculate the workbook. When working directly within Excel you want this to happen 99.9% of the time (the exception being if you are working with an extremely large workbook). However, this can really slow down your VBA code.

1 Answer

In a blank .xlsm file, in the workbook open event, put in this code

Since the calculations will be driven by whether or not the last opened workbook is manual or automatic, the above code will have to be put into a Caller workbook (shown above). This caller workbook, upon opening, will first disable calculations and then pull up your workbook which will be guaranteed to have manual calculation mode.

Also, in the required workbook (the one with circular references), The OnOpen event should trigger a Close of the caller workbook without saving.

That way the process is transparent to the user and s/he only opens the Caller book.

hnk

Excel Calculation Changes To Manual

hnk
2,0961 gold badge8 silver badges17 bronze badges

Excel Turn On Manual Calculation Mac 10

Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Excel Turn On Manual Calculation Mac And Cheese

Not the answer you're looking for? Browse other questions tagged excelvbaexcel-vba or ask your own question.