Enabling calculation when opening workbooks

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I prevent Excel from automatically calculating when opening a large
workbook?

The workbook is used by a number of people, and I do not wish simply to ask
them to enable automatic calculation before opening the workbook.

Thanks,
Per
 
Give them a workbook that turns calculation to manual, then opens that other
workbook, then closes itself.

Option Explicit
Sub auto_open()
Application.Calculation = xlCalculationManual
Workbooks.Open Filename:="c:\my documents\excel\book2.xls"
ThisWorkbook.Close savechanges:=False
End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Just like the xmas camera--open me first!
 
Thanks, but are there ways to do it directly in the workbook in order not to
have file name references (eg. in case files are moved or renamed)?

By the way, sorry about any confusion caused by writing enabling instead of
disabling...

Thanks,
Per

"Dave Peterson" skrev:
 

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