Link to home
Start Free TrialLog in
Avatar of route217
route217Flag for United Kingdom of Great Britain and Northern Ireland

asked on

macro to switch on auto cals when workbook is opened

Hi Experts

Need a macro to switch on the auto cal funtion in excel 2003 once the user opens up the workbook....

I have set the auto cal to manual via the Tool>Option in excel - due to the size of the calulcation taking place in to whole workbook.....

so need a macro each time workbook is open to siwtch on auto cal and turn of auto cal when workbook is closed down.....
Avatar of route217
route217
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

This my attempt.........

'Private Sub Workbook_BeforeClose(Cancel As Boolean)
'With Application
'.CalculateBeforeSave = False
'.Calculation = xlAutomatic
'.MaxChange = 0.001
'End With
'MsgBox "Automatic Calculation has been ""enabled""."
'
'End Sub

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of JP
JP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
many thanks for the feed back...