+ Reply to Thread
Results 1 to 3 of 3

slow response on worksheet calculate

Hybrid View

  1. #1
    Registered User
    Join Date
    07-25-2008
    Location
    Tucson, AZ
    Posts
    90

    slow response on worksheet calculate

    I have a somewhat complex worksheet. Some macros, some dynamic named ranges, some formulas, etc

    I also have a VBA-initiated call to Solver for optimization purposes.

    I have run into very long runtimes when initiating the Solver call because Excel is re-calculating the entire sheet every time it makes a new guess for Solver solution.

    I really only need a very limited range on the worksheet to be recalculated, so I tried setting the worksheet to Manual Calculation and then doing a manual Range.Calculate at the end of each trial solution. However, Solver won't even initialize, I suppose since it assumes it will not see any dependency on a manually-calculated sheet.

    So I have gone back to Auto Calculation. Is there way to selectively tell Excel not to re-calculate a certain Range even though the greater sheet is set to AutoCalc?

    In a related question, does a Calculation event also trigger updates to dynamically-defined named ranges? I have several ranges that are defined in terms of COUNTA. Do you think it is re-calculating all these named ranges every time a cell changes?

  2. #2
    Registered User
    Join Date
    07-25-2008
    Location
    Tucson, AZ
    Posts
    90

    Re: slow response on worksheet calculate

    bump for a little help

    specifically interested in the autocalc behavior of named ranges:

    Quote Originally Posted by twd000 View Post
    In a related question, does a Calculation event also trigger updates to dynamically-defined named ranges? I have several ranges that are defined in terms of COUNTA. Do you think it is re-calculating all these named ranges every time a cell changes?
    does it matter whether a range is defined in the GUI or in VBA code?

  3. #3
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: slow response on worksheet calculate

    hi twd000,

    I imagine that one of the sections (see links under the page header) of the below page will give you all your answers & more!

    When you start reading, you'll know why I haven't tried to answer you directly - my responses would be straight from Charles' page. I'm not sure (from memory) if he discusses Solver specifically or not.

    http://www.decisionmodels.com/calcsecrets.htm

    In particular, check out the links called "Calculation Methods" & "Calculating from VBA".

    hth
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1