Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 270
Default Override Excel's Heroin Addiction to Calculating

If I open a file that includes code (Application.Calculation =
xlCalculationAutomatic) in ThisWorkbookthat changes calc to manual upon
opening, it still calculates; likewise, if I use SaveAs in a macro, even if I
explicitly change calc to manual first, once it starts saving, it
recalculates. How do I stop Excel from calculating when a file is opened and
saved? P.S. Am using Excel 2003.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Override Excel's Heroin Addiction to Calculating

The before save part is easy...

Application.CalculateBeforeSave = False

I did not follow you on the first part...
--
HTH...

Jim Thomlinson


"Paige" wrote:

If I open a file that includes code (Application.Calculation =
xlCalculationAutomatic) in ThisWorkbookthat changes calc to manual upon
opening, it still calculates; likewise, if I use SaveAs in a macro, even if I
explicitly change calc to manual first, once it starts saving, it
recalculates. How do I stop Excel from calculating when a file is opened and
saved? P.S. Am using Excel 2003.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 270
Default Override Excel's Heroin Addiction to Calculating

Yikes, I'm embarrased! Thanks, Jim. The other part was how to stop it from
calculating when opening a file. I tried putting Application.Calculation =
xlCalculationManual in ThisWorkbook, but it still calculates when the file is
opened.


"Jim Thomlinson" wrote:

The before save part is easy...

Application.CalculateBeforeSave = False

I did not follow you on the first part...
--
HTH...

Jim Thomlinson


"Paige" wrote:

If I open a file that includes code (Application.Calculation =
xlCalculationAutomatic) in ThisWorkbookthat changes calc to manual upon
opening, it still calculates; likewise, if I use SaveAs in a macro, even if I
explicitly change calc to manual first, once it starts saving, it
recalculates. How do I stop Excel from calculating when a file is opened and
saved? P.S. Am using Excel 2003.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 968
Default Override Excel's Heroin Addiction to Calculating

Excel calculates before any events fire ...
so the onl;y way is to switch to Manual before opening the workbook ...
adding a workbook that is in Manual mode to XLStart will work.


Charles
__________________________________________________
The Excel Calculation Site
http://www.decisionmodels.com

"Paige" wrote in message
...
Yikes, I'm embarrased! Thanks, Jim. The other part was how to stop it
from
calculating when opening a file. I tried putting Application.Calculation
=
xlCalculationManual in ThisWorkbook, but it still calculates when the file
is
opened.


"Jim Thomlinson" wrote:

The before save part is easy...

Application.CalculateBeforeSave = False

I did not follow you on the first part...
--
HTH...

Jim Thomlinson


"Paige" wrote:

If I open a file that includes code (Application.Calculation =
xlCalculationAutomatic) in ThisWorkbookthat changes calc to manual upon
opening, it still calculates; likewise, if I use SaveAs in a macro,
even if I
explicitly change calc to manual first, once it starts saving, it
recalculates. How do I stop Excel from calculating when a file is
opened and
saved? P.S. Am using Excel 2003.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 270
Default Override Excel's Heroin Addiction to Calculating

Thanks guys; this will definitely resolve my issues. Appreciate the help!

"Charles Williams" wrote:

Excel calculates before any events fire ...
so the onl;y way is to switch to Manual before opening the workbook ...
adding a workbook that is in Manual mode to XLStart will work.


Charles
__________________________________________________
The Excel Calculation Site
http://www.decisionmodels.com

"Paige" wrote in message
...
Yikes, I'm embarrased! Thanks, Jim. The other part was how to stop it
from
calculating when opening a file. I tried putting Application.Calculation
=
xlCalculationManual in ThisWorkbook, but it still calculates when the file
is
opened.


"Jim Thomlinson" wrote:

The before save part is easy...

Application.CalculateBeforeSave = False

I did not follow you on the first part...
--
HTH...

Jim Thomlinson


"Paige" wrote:

If I open a file that includes code (Application.Calculation =
xlCalculationAutomatic) in ThisWorkbookthat changes calc to manual upon
opening, it still calculates; likewise, if I use SaveAs in a macro,
even if I
explicitly change calc to manual first, once it starts saving, it
recalculates. How do I stop Excel from calculating when a file is
opened and
saved? P.S. Am using Excel 2003.




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 override a hyperlink clara Excel Programming 3 July 23rd 07 11:38 PM
Override peddie Excel Programming 4 August 22nd 06 02:41 PM
NosmoQ, good for health, can stop smoking addiction.. chary Excel Discussion (Misc queries) 0 October 20th 05 06:36 PM
Override excel's printing dpi setting [email protected] Excel Programming 0 June 29th 05 11:07 AM
Override No Zero Values ? Al Franz Excel Programming 1 May 19th 05 10:16 AM


All times are GMT +1. The time now is 11:03 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"