ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Turn AutoCalc off on opening file (https://www.excelbanter.com/excel-programming/377548-turn-autocalc-off-opening-file.html)

Mitch Powell

Turn AutoCalc off on opening file
 
I need to turn AutoCalc off when a user opens the workbook. I've tried the
following to methods:

Sub Auto_Open()
Application.Calculation = xlCalculationManual
End Sub

Private Sub Workbook_Open()
Application.Calculation = xlCalculationManual
End Sub

In both cases, if AutoCalc is already on, the workbook calculates before
these routines are run. Any suggestions?


Jim Jackson

Turn AutoCalc off on opening file
 
All I can think of is to change sub Auto_Open() to Sub Auto_Close()

This way the autocalc will be disabled before the workbook closes. And will
be disabled when next it is opened.
--
Best wishes,

Jim


"Mitch Powell" wrote:

I need to turn AutoCalc off when a user opens the workbook. I've tried the
following to methods:

Sub Auto_Open()
Application.Calculation = xlCalculationManual
End Sub

Private Sub Workbook_Open()
Application.Calculation = xlCalculationManual
End Sub

In both cases, if AutoCalc is already on, the workbook calculates before
these routines are run. Any suggestions?



All times are GMT +1. The time now is 07:19 PM.

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