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

javascript - Can Piwik report referrer in real time? -

asp.net - Google Drive Access: At least one client secrets (Installed or Web) should be set -

excel vba add hyperlink to shape in group -