We have VBA code that turns off Excel Automatic calculation, runs the VBA code and then turns Automatic calculation back on.
Part way through the code we need the spreadsheet calculated.
This works ok in Windows but when we run the same code on Mac, it doesn't appear to work in the same way.
So code would be
Application.Calculation = xlCalculationManual
VBA code
Application.Calculation = xlCalculationAutomatic To update the spreadsheet
Application.Calculation = xlCalculationManual To turn calculation off
VBA code
Application.Calculation = xlCalculationAutomatic
On Mac, this does not work.
We have tried
Calculate instead of xlCalculationAutomatic and xlCalculationManual and that didn't work.
On Mac the xlCalculationAutomatic doesn't seem to work immediately. We got it to work by running calculate after it.
Any answers would be appreciated.
Thank you