Avatar of route217
route217
Flag 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.....
Microsoft Excel

Avatar of undefined
Last Comment
route217

8/22/2022 - Mon
route217

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
JP

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
route217

ASKER
many thanks for the feed back...
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy