Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default How to stop automatic calculation

it is default set to manual, and calculation is done by my macro. everything
is fine. However, my workbook will be mess up and start calculate everything
when user forget to close my workbook and open another workbook. I guess it
is because the other workbooks default is automatic and it change my working
environment background to automatic. How can I prevent my workbook calculate
itself when another wookbook is open?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default How to stop automatic calculation

Excel changes the calculation mode based on the first workbook you open in that
session.

If your users open your workbook first (with calculation set to manual), then it
should be manual.

But if they open another workbook first (with calc set to automatic), then when
they open your workbook, calculation will still be automatic.

One way around this is to give the users an intermediate workbook that sets the
calculation to manual, then opens your workbook.

This is the kind of code in the helper workbook:

Option explicit
Sub Auto_open()
Application.Calculation = xlCalculationManual
workbooks.open(filename:="C:\myworkbook.xls")
thisworkbook.close savechanges:=true
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

Arthur wrote:

it is default set to manual, and calculation is done by my macro. everything
is fine. However, my workbook will be mess up and start calculate everything
when user forget to close my workbook and open another workbook. I guess it
is because the other workbooks default is automatic and it change my working
environment background to automatic. How can I prevent my workbook calculate
itself when another wookbook is open?


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to stop Automatic calculations? 1ThngOrAnthr Excel Discussion (Misc queries) 2 August 8th 07 08:56 PM
How do I STOP automatic publishing to web H Excel Discussion (Misc queries) 0 January 18th 07 01:48 PM
How do I stop automatic hyperlinks? Jim in Berkeley Excel Discussion (Misc queries) 2 March 5th 05 02:58 AM
stop calculation Claude Excel Programming 0 May 6th 04 03:18 PM
range.calculation with UDF not working when calculation is set to automatic Brian Murphy Excel Programming 5 October 14th 03 07:02 PM


All times are GMT +1. The time now is 04:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"