Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Set Calculation Mode to Automatic without calculating

Hello,


I'm experiencing a huge performance issue when testing a fairly large
workbook on XL2003 (vs XL2000).

Calculation Mode is set to Automatic. I found out that XL2003 triggers
a recalculation when hiding/showing some rows, while XL2000 does not.

- Is there a way to make XL2003 behave like XL2000 on this very point?
(no calculation upon hide/show rows)




If not I'm trying to workaround this (VBA).

I can set the calculation mode to Manual right before hiding/showing
the rows, and then reset it back to automatic afterwards. My problem
now is that XL recalculates when Calculation mode is reset to
automatic.

Is there a way to reset the Calculation Mode to automatic (I don't want
to keep Manual calculation mode) without having XL to recalculate
everything?


Thanks in advance for your help,
Jerome

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Set Calculation Mode to Automatic without calculating

The reason for this change in Excel 2003 is that the SUBTOTAL function was
enhanced to include the option to sum just visible rows. So since hiding
and unhiding rows can now change calculated results, Excel does a calc.

The only option I can think of is to set calculation to manual and to do a
calc via macro every time the user makes an entry (I assume that is your
goal in keeping calc automatic).

To do that you'd need to add this sub to the ThisWorkbook module of the
workbook:

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Calculate
End Sub


--
Jim
wrote in message
oups.com...
| Hello,
|
|
| I'm experiencing a huge performance issue when testing a fairly large
| workbook on XL2003 (vs XL2000).
|
| Calculation Mode is set to Automatic. I found out that XL2003 triggers
| a recalculation when hiding/showing some rows, while XL2000 does not.
|
| - Is there a way to make XL2003 behave like XL2000 on this very point?
| (no calculation upon hide/show rows)
|
|
|
|
| If not I'm trying to workaround this (VBA).
|
| I can set the calculation mode to Manual right before hiding/showing
| the rows, and then reset it back to automatic afterwards. My problem
| now is that XL recalculates when Calculation mode is reset to
| automatic.
|
| Is there a way to reset the Calculation Mode to automatic (I don't want
| to keep Manual calculation mode) without having XL to recalculate
| everything?
|
|
| Thanks in advance for your help,
| Jerome
|


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Set Calculation Mode to Automatic without calculating

Hi Jim (and the others too)


I figured I would have to *manually* fake the autocalculation whenever
required.
I was just hoping someone would come up with an idea on how to set
calculation mode back to automatic without firing a calculation.
At some point I thought I found a way with the CalculationState
property but unfortunately it's a read-only property and I can't set it
to xlDone myself like I trick the Saved property of the workbook before
close.

Thanks anyway.
Just in case there's still a solution around, anybody else?


Jerome

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
Manual Calculation in Excel 2007 with Calculate mode set to Automatic Julie White Excel Worksheet Functions 1 November 24th 09 09:38 PM
Formulas not calculating - Calculation is on Automatic & I pressed dano Excel Discussion (Misc queries) 2 November 7th 07 01:43 AM
Calculation Mode Norman Jones Excel Programming 1 January 27th 05 01:39 AM
Calculation Mode Jim Rech Excel Programming 0 September 7th 04 06:33 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 09:43 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"