ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   turn off autocalc (https://www.excelbanter.com/excel-programming/331079-turn-off-autocalc.html)

barrfly[_3_]

turn off autocalc
 

I have a module that loops an open several hunderd other excel dat
files. Although I used the command

Application.Calculation = xlCalculationManual

it is still calculating eachtime one of these files is opened. I
there someting I can write in the module that will not allow th
calcualting (which seriously slows down the subroutine.

Thank

--
barrfl

Excel User - Energy market
-----------------------------------------------------------------------
barrfly's Profile: http://www.excelforum.com/member.php...nfo&userid=414
View this thread: http://www.excelforum.com/showthread.php?threadid=37689


Simon Lloyd[_620_]

turn off autocalc
 

Hi i use this with no problems but you may want to set the MaxChange
0.0001 or something of that ilk!

With Application
.EnableEvents = False
.ScreenUpdating = False
.Calculation = xlCalculationManual
End With

Simo

--
Simon Lloy
-----------------------------------------------------------------------
Simon Lloyd's Profile: http://www.excelforum.com/member.php...nfo&userid=670
View this thread: http://www.excelforum.com/showthread.php?threadid=37689



All times are GMT +1. The time now is 10:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com