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


1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.