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

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

javascript - Can Piwik report referrer in real time? -