+ Reply to Thread
Results 1 to 7 of 7

Is there any way to stop a range from calculating without setting EnableCalculation Off?

  1. #1
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Is there any way to stop a range from calculating without setting EnableCalculation Off?

    I have a large range with a lot of dependent cells that I don't want to calculate until I tell it to. It uses SUMIF().
    But I don't want to turn off Calulation or EnableCalulcation because they take too long to turn back on.
    Is there some way to prevent the range from recalculating?

    I thought of using the formula =If(Range("myRecalc"),SUMIF(.....),???) and replace myRacalc with "False" until I'm ready.
    But I can't figure out what to put for the Value_If_False that wouldn't recalculate when I put the "False" into myRecalc.
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Is there any way to stop a range from calculating without setting EnableCalculation Of

    I wonder whether you can use a macro using first xlcalcualtion=manual in the beginning and at the end change it to automatic

    try something like this

    if you record the macro doing the formula you will know how to write a macro for this formula.
    I am not an expert. better solutions may be available
    $$$$venkat1926$$$$@gmail.com

  3. #3
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Is there any way to stop a range from calculating without setting EnableCalculation Of

    It takes too long to set Calculation back to Automatic, that's why I'm trying to find a way around it.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,053

    Re: Is there any way to stop a range from calculating without setting EnableCalculation Of

    too long? it only takes 5 mouse clicks, and even that, you could record a macro to do for you with just 1 click....or just F9 to recalc

    also, take a look and see if you can change your data to a table, there is an option to have auto-calc on all but data tables, see if this will work for you?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Is there any way to stop a range from calculating without setting EnableCalculation Of

    What I meant by "too long" is: there are so many volatile formulas in the workbook that it takes too long to recalculate them when I set calculation back to automatic. I'm working on reducing the # of volatile formulas, but it takes time (I inherited the file and have to triple check everything I do, because I can only change a few at a time and then let them be tested for a few days to make sure there are no unforeseen consequences).

    I'll look at making it a table. My hunch is that it won't work, but I won't know until I try.

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Is there any way to stop a range from calculating without setting EnableCalculation Of

    Hi foxguy,

    You seem to have an interesting problem: Maybe you will find this link helpful.

    http://msdn.microsoft.com/en-us/library/ff700515.aspx

    HTH
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  7. #7
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Is there any way to stop a range from calculating without setting EnableCalculation Of

    I have read that before. It's helping me in rebuilding the workbook.
    The original author did a lot of things that didn't really matter when the file was first being used, but now one of the sheets has over 12,000 rows of data in dynamic ranges (and growing every day) and every one of those rows has volatile formulas in it, and there are a lot of formulas throughout the workbook that extract data from that sheet. In addition (s)he named ranges on a lot of sheets with the same name and some of the macros build the range names within the macro (which prevents a search for the range names), so I have to be very careful about changing the range names or converting the ranges to fixed addresses (to get rid of the volatility). I have to constantly look for unforeseen consequences which takes time.

+ 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