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
Post a Comment