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

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -