Re-establish function on exiting workbook
Why turn Automatic calculation back on when you close the workbook if you
are just going to turn it back off when you open it again? If you want the
cells updated for any changes made, just issue a Calculate or CalculateFull
method in the BeforeClose event.
--
Rick (MVP - Excel)
"Colin Hayes" wrote in message
...
HI All
I use this code to turn Automatic Calculation to Manual when I open my
workbook :
Private Sub Workbook_Open()
With Application
.Calculation = xlManual
.MaxChange = 0.001
.CalculateBeforeSave = False
End With
ActiveWorkbook.PrecisionAsDisplayed = False
End Sub
Can someone advise how to extend this so that it switches Automatic
Calculation back on when I close the workbook?
Thanks
|