Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Switching to Manual Calculation stalls workbook

I have recently run into a problem where I need to switch to manual calc in
order to speed up the work I was doing. However, the act of switching from
automatic calc to manual calc both by-hand and within VBA causes my project
to stall for a good minute or two before continuing with whatever it was
doing. For comparison, doing a full calculation of my workbook would normally
take about 4 seconds.

I am simply executing this line of code:
Application.Calculation = xlManual


My question is what exactly is happening when I "switch" from auto to manual
calculation that may be causing this stall?

Pertinent information:
- I currently have references from this workbook to 62 other workbooks.
- Many of these references are array formulas (but remember that a normal
full calculation would only take about 4 seconds)

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Switching to Manual Calculation stalls workbook

After further examination of my program I discovered that the problem lies
within rebuilding dependencies of one of my worksheets.

Specifically, I have a VBA subroutine that fills this worksheet with array
formulas, which reference my 62 database files. Without rebuilding the
dependencies of these thousands of array formulas before switching to manual
calculation, Application.Calculation = xlManual would cause Excel to stall,
presumedly doing its own dependency check (albiet inefficiently).

The fix to this problem was to call the method:

Application.CalculateFullRebuild

after I had created my new array formulas, thereby saving Calculate =
xlManual the trouble of fixing missing dependencies.

"Tokenekie" wrote:

I have recently run into a problem where I need to switch to manual calc in
order to speed up the work I was doing. However, the act of switching from
automatic calc to manual calc both by-hand and within VBA causes my project
to stall for a good minute or two before continuing with whatever it was
doing. For comparison, doing a full calculation of my workbook would normally
take about 4 seconds.

I am simply executing this line of code:
Application.Calculation = xlManual


My question is what exactly is happening when I "switch" from auto to manual
calculation that may be causing this stall?

Pertinent information:
- I currently have references from this workbook to 62 other workbooks.
- Many of these references are array formulas (but remember that a normal
full calculation would only take about 4 seconds)

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
Calculation - set to automatic for one workbook - manual for anoth dhstein Excel Discussion (Misc queries) 2 May 20th 09 08:35 PM
Manual Calculation Steven Excel Programming 1 July 8th 08 03:50 PM
Automatic Calculation switching to manual gstevens26 Excel Discussion (Misc queries) 5 August 25th 06 01:58 PM
Opening Workbook resets calculation to automatic from manual etc Bill Shepherd Excel Discussion (Misc queries) 2 May 31st 06 02:02 PM
Switching calculation to manual using Workbook_open [email protected] Excel Programming 6 April 13th 05 02:47 PM


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