Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Application.Calculation = xlCalculationManual not working

Hello,

I've got a bit of an Excel programming problem. I really need to avoid
having the worksheet recalculate until the macro I'm running is done. To do
so, I've been using the command:
Application.Calculation = xlCalculationManual
It has been working fine, too, until I added more calculated data (using a
UDF) to the worksheet. Now the function just does not work. Adding a watch to
Application.Calculation shows that the value does not change after it is
explicitly set to xlCalculationManual. And adding "Debug.Assert
Application.Calculation = xlCalculationManual" after setting the Calculation
mode always causes that line to trigger the debugger.

Does anyone have any idea what can be causing this?
Does Excel have any conditions that must be satisfied before the calculation
mode can be toggled?

Thanks,
David
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Application.Calculation = xlCalculationManual not working

On Feb 9, 4:31 pm, David G <David
wrote:
Hello,

I've got a bit of an Excel programming problem. I really need to avoid
having the worksheet recalculate until the macro I'm running is done. To do
so, I've been using the command:
Application.Calculation =xlCalculationManual
It has been working fine, too, until I added more calculated data (using a
UDF) to the worksheet. Now the function just does not work. Adding a watch to
Application.Calculation shows that the value does not change after it is
explicitly set toxlCalculationManual. And adding "Debug.Assert
Application.Calculation =xlCalculationManual" after setting the Calculation
mode always causes that line to trigger the debugger.

Does anyone have any idea what can be causing this?
Does Excel have any conditions that must be satisfied before the calculation
mode can be toggled?

Thanks,
David


Feel free to disregard this call for help. I looked at some other
newgroup discussions about this topic and looks like nobody has any
idea whats going on with regards to this.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Application.Calculation = xlCalculationManual not working

Hello Niek,

The problem is that the statement "Application.Calculation =
xlCalculationManual" doesn't seem to do what it was supposed to.
For example, the following code:
Application.Calculation = xlCalculationManual
Debug.Assert Application.Calculation = xlCalculationManual
Would always cause the debugger to come up on the second statement.
It appears as though the statement 'Application.Calculation =
xlCalculationManual' does nothing for this case or doesn't get
executed appropriately. The calculation mode is not changed to Manual
after the statement is executed. This only happens sometimes, though,
and I can't determine the conditions involved in causing this problem.

David



On Feb 19, 11:31 am, "Niek Otten" wrote:
Hi David,

I don't understand your question. If Calculation is set to Manual, then it is normal that the functions are not calculated, isn't
it?
What exactly do you mean with "the function doesn't work"?

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"David G" <David wrote in ...
| Hello,
|
| I've got a bit of an Excel programming problem. I really need to avoid
| having the worksheet recalculate until the macro I'm running is done. To do
| so, I've been using the command:
| Application.Calculation =xlCalculationManual
| It has been working fine, too, until I added more calculated data (using a
| UDF) to the worksheet. Now the function just does not work. Adding a watch to
| Application.Calculation shows that the value does not change after it is
| explicitly set toxlCalculationManual. And adding "Debug.Assert
| Application.Calculation =xlCalculationManual" after setting the Calculation
| mode always causes that line to trigger the debugger.
|
| Does anyone have any idea what can be causing this?
| Does Excel have any conditions that must be satisfied before the calculation
| mode can be toggled?
|
| Thanks,
| David



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Application.Calculation = xlCalculationManual not working

Dear anyone who can help,

I have the same problem but in reverse. (using Excel 2003)

I need to make sure that Application.Calculation =
xlCalculationAutomatic

But every time I change the value, in the very next line,
Application.Calculation is back to the value it was before.

Any help will be greatly appreciated,
MagooChris


On Feb 27, 6:12 am, wrote:
Hello Niek,

The problem is that the statement "Application.Calculation=
xlCalculationManual" doesn't seem to do what it was supposed to.
For example, the following code:
Application.Calculation= xlCalculationManual
Debug.AssertApplication.Calculation= xlCalculationManual
Would always cause the debugger to come up on the second statement.
It appears as though the statement 'Application.Calculation=
xlCalculationManual' does nothing for this case or doesn't get
executed appropriately. The calculation mode is not changed to Manual
after the statement is executed. This only happens sometimes, though,
and I can't determine the conditions involved in causing this problem.

David

On Feb 19, 11:31 am, "Niek Otten" wrote:



Hi David,


I don't understand your question. If Calculation is set to Manual, then it is normal that the functions are not calculated, isn't
it?
What exactly do you mean with "the function doesn't work"?


--
Kind regards,


Niek Otten
Microsoft MVP - Excel


"David G" <David wrote in ...
| Hello,
|
| I've got a bit of an Excel programming problem. I really need to avoid
| having the worksheet recalculate until the macro I'm running is done. To do
| so, I've been using the command:
|Application.Calculation=xlCalculationManual
| It has been working fine, too, until I added more calculated data (using a
| UDF) to the worksheet. Now the function just does not work. Adding a watch to
|Application.Calculationshows that the value does not change after it is
| explicitly set toxlCalculationManual. And adding "Debug.Assert
|Application.Calculation=xlCalculationManual" after setting the Calculation
| mode always causes that line to trigger the debugger.
|
| Does anyone have any idea what can be causing this?
| Does Excel have any conditions that must be satisfied before the calculation
| mode can be toggled?
|
| Thanks,
| David- Hide quoted text -


- Show quoted text -





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Application.Calculation = xlCalculationManual not working

How "complex" is the spreadsheet you are experiencing the
CalculationMode problem with?
I started to get the feeling that this problem is due to too many
dependencies between cells.
I still never got a straight answer regarding this issue.

David

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
VBA Application.xlCalculationManual Tony McGee Excel Programming 2 October 11th 06 05:10 AM
Application.Calculation = xlCalculationManual fails AM Excel Programming 1 June 9th 06 12:23 AM
Application.Calculation = xlCalculationManual mystery David Excel Programming 2 July 13th 05 09:56 AM
How to set in XLA calculation on xlCalculationManual Billy[_5_] Excel Programming 6 September 20th 04 07:57 AM
Application.Calculation=xlCalculationManual causing run time error? Dave Peterson[_3_] Excel Programming 3 October 18th 03 12:51 AM


All times are GMT +1. The time now is 11:41 PM.

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"