Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default How do I stop formulas from calculating when I open a worksheet

I have a worksheet that calls several user defined functions. Every time I
open up the file in Excel, I have to wait while it recalculates every cell
with a formula.

How do I prevent this from occurring on startup?
  #2   Report Post  
Posted to microsoft.public.excel.programming
XP XP is offline
external usenet poster
 
Posts: 389
Default How do I stop formulas from calculating when I open a worksheet


Navigate to [Tools] then [Options] then [Calculation] tab. Click "Manual".

If you want this equivalent in code:

Application.Calculation = xlCalculationManual

to reset:

Application.Calculation = xlCalculationAutomatic

HTH


"J. Caplan" wrote:

I have a worksheet that calls several user defined functions. Every time I
open up the file in Excel, I have to wait while it recalculates every cell
with a formula.

How do I prevent this from occurring on startup?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default How do I stop formulas from calculating when I open a workshee

I don't want to go through the menu option since I don't want my users to
have to do that.

If I used Application.Calculation = xlCalculationManual and put it in the
Workbook_Open event, this fires if I just open Excel and causes an error:
Method 'Calculation' of object '_Application' failed. If I open the XLS
file directly it still calculates. Plus I will want auto calculation on
once the document is open. Turning it back on is going to cause everything
to recalculate.

I could set a flag so that in my function, when called, it does nothing if
the flag is set. The problem is knowing when to flip the flag back on so
that when the function is called AFTER the doc is open, it does something
again.


"XP" wrote:


Navigate to [Tools] then [Options] then [Calculation] tab. Click "Manual".

If you want this equivalent in code:

Application.Calculation = xlCalculationManual

to reset:

Application.Calculation = xlCalculationAutomatic

HTH


"J. Caplan" wrote:

I have a worksheet that calls several user defined functions. Every time I
open up the file in Excel, I have to wait while it recalculates every cell
with a formula.

How do I prevent this from occurring on startup?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 120
Default How do I stop formulas from calculating when I open a workshee

I usually solve your last problem by placing the flag into a cell on a
worksheet, where the background color is conditionally formated - hot red
when recalculation stopped - and this strikes me sufficiently to be aware of
possible improper result.
Petr Bezucha


"J. Caplan" wrote:

I don't want to go through the menu option since I don't want my users to
have to do that.

If I used Application.Calculation = xlCalculationManual and put it in the
Workbook_Open event, this fires if I just open Excel and causes an error:
Method 'Calculation' of object '_Application' failed. If I open the XLS
file directly it still calculates. Plus I will want auto calculation on
once the document is open. Turning it back on is going to cause everything
to recalculate.

I could set a flag so that in my function, when called, it does nothing if
the flag is set. The problem is knowing when to flip the flag back on so
that when the function is called AFTER the doc is open, it does something
again.


"XP" wrote:


Navigate to [Tools] then [Options] then [Calculation] tab. Click "Manual".

If you want this equivalent in code:

Application.Calculation = xlCalculationManual

to reset:

Application.Calculation = xlCalculationAutomatic

HTH


"J. Caplan" wrote:

I have a worksheet that calls several user defined functions. Every time I
open up the file in Excel, I have to wait while it recalculates every cell
with a formula.

How do I prevent this from occurring on startup?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default How do I stop formulas from calculating when I open a workshee

I think that is a different issue.

I have found out more information on this though. I had one of my users
give me a spreadsheet that they have that calls UDFs in an Add-In that I do
not have. When I open the workbook, it opens fine even though I don't have
the Add-In. When I do something to a cell used in the formula, I get errors
in the cell, as expected. What this tells me though, is that when I open the
Workbook, the cells are NOT being recalculated. If I add calls to my UDF as
well on this workbook, it DOES recalculate them when I open the workbook. I
am trying to figure out why it wants to recalculate my formula's.

"PBezucha" wrote:

I usually solve your last problem by placing the flag into a cell on a
worksheet, where the background color is conditionally formated - hot red
when recalculation stopped - and this strikes me sufficiently to be aware of
possible improper result.
Petr Bezucha


"J. Caplan" wrote:

I don't want to go through the menu option since I don't want my users to
have to do that.

If I used Application.Calculation = xlCalculationManual and put it in the
Workbook_Open event, this fires if I just open Excel and causes an error:
Method 'Calculation' of object '_Application' failed. If I open the XLS
file directly it still calculates. Plus I will want auto calculation on
once the document is open. Turning it back on is going to cause everything
to recalculate.

I could set a flag so that in my function, when called, it does nothing if
the flag is set. The problem is knowing when to flip the flag back on so
that when the function is called AFTER the doc is open, it does something
again.


"XP" wrote:


Navigate to [Tools] then [Options] then [Calculation] tab. Click "Manual".

If you want this equivalent in code:

Application.Calculation = xlCalculationManual

to reset:

Application.Calculation = xlCalculationAutomatic

HTH


"J. Caplan" wrote:

I have a worksheet that calls several user defined functions. Every time I
open up the file in Excel, I have to wait while it recalculates every cell
with a formula.

How do I prevent this from occurring on startup?



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
Formulas stop calculating brodiemac Excel Discussion (Misc queries) 3 November 7th 06 04:17 PM
Formulas stop calculating slc Excel Worksheet Functions 2 October 9th 06 06:14 AM
Stop calculating on open Daniel Bonallack Excel Worksheet Functions 7 February 19th 06 10:29 PM
How do I stop Excel from closing the open file each time I open a. Welsin Setting up and Configuration of Excel 3 January 8th 05 11:16 PM
Formulas stop calculating at random times when editing a few spreadsheets. Luke MacNeil Excel Discussion (Misc queries) 3 November 30th 04 03:21 PM


All times are GMT +1. The time now is 10:33 PM.

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

About Us

"It's about Microsoft Excel"