vba - Macro: activate "automatic caluclation" when opening an excel workbook -


how activate option " automatic calculation" when directly after opening excel workbook macro?

open vb editor (alt+f11) , right click thisworkbook (under microsoft excel objects) --> view code.

this area handles workbook event code.

paste in following code:

private sub workbook_open()         application.calculation = xlcalculationautomatic end sub 

this changes excel settings make calculation automatic. if want calculate workbook on open can so:

private sub workbook_open()         application.calculation = xlcalculationautomatic 'change calculation setting automatic         application.calculate 'perform workbook calculations end sub 

Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -