Stopping calculation on workbook open

  • Thread starter Thread starter mike_ward99
  • Start date Start date
M

mike_ward99

Hi,

I have put the following code in both the Sub Auto_Open() and Private
Sub Workbook_Open() procedures
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.EnableCalculation = False
Next ws
However, when I open the workbook I still see the status bar
indicating that the the workbook is recalculating. Now besides putting
code into the status bar :-) what am I doing wrong? Why is the
workbook still recalculating?
Regards,
Mike
 
Hi,

I have put the following code in both the Sub Auto_Open() and Private
Sub Workbook_Open() procedures
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.EnableCalculation = False
Next ws
However, when I open the workbook I still see the status bar
indicating that the the workbook is recalculating. Now besides putting
code into the status bar :-) what am I doing wrong? Why is the
workbook still recalculating?
Regards,
Mike

how about

Application.Calculation = xlCalculationManual
 
The problem is that Excel does the Calculate BEFORE any event such as
Workbook_Open fires.
The only way to prevent the calculate is to make sure Excel is in Manual
calculation mode before the workbook is opened.

Charles
______________________
Decision Models
FastExcel 2.3 now available
Name Manager 4.0 now available
www.DecisionModels.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top