Jump to content
Sign in to follow this  
BlueLord

Excel Workbook automatic calculation

Recommended Posts

BlueLord

Hy,

To speed up my script i need a way to "deactivate" automatic workbook calculation on excel (to switch in manual).

I work with a big file and when i paste a formula it's take to much time to calculate, i need to deactivate automatic calc. and paste formula's and after that to calculate (switch to automatic).

And my second question is regarding pivot table... whow to generate them?

Thanks in advance!!!

post-58816-12850057367766_thumb.jpg

Edited by BlueLord

Share this post


Link to post
Share on other sites
Juvigy

1 easy way is to put it to manual and then just save the workbook.

It calculates it before save.

Share this post


Link to post
Share on other sites
seandisanti

$oEX = ObjAttach("","excel.Application")
$owb = $oEX.ActiveWorkbook
$oAS = $owb.Activesheet
$oAS.EnableCalculation = "False";If this doesn't work, try 0 or -1 instead of false

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×