+ Reply to Thread
Results 1 to 6 of 6

How do I stop calculation??

  1. #1
    Registered User
    Join Date
    04-14-2010
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    24

    How do I stop calculation??

    Hi all,
    I'm using Excel 2007. In Forumulas ribbon, Calculation Options, I have Manual set.
    Yet whenever I paste code into the workbook's vb module, or when I cut/insert columns or anything like that, the entire sheet recalculates. Isn't that what the "manual" option is supposed to prevent?

    If that's not what that option is for, can anyone tell me how to disable any calculations until I give it the go-ahead?

    Thanks,
    --Jim

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: How do I stop calculation??

    Hi Jim, welcome to the forum.

    Can't say I get the same results as you. I've done everything you've mentioned (cut/insert/vba/etc) and nothing recalculates.

    I suppose you could set calculation to manual in vba, but not sure anything would change for you..
    Please Login or Register  to view this content.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: How do I stop calculation??

    Paul's correct. Manual Calculation should mean exactly that.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How do I stop calculation??

    Do you have any Change events running in VBE that maybe forcing a calculation ?

  5. #5
    Registered User
    Join Date
    04-14-2010
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: How do I stop calculation??

    Hi all and thanks for the replys.
    Here's what I did to recreate:

    First, nothing in any Change event.

    All I need to do to recreate this is copy a function in the module, paste it and change it's name, then hit Save and the calculation starts. Save does not force calculation in any other situation--I can add data to cells, add forumulas to cells, etc. then hit Save and no Recalc. But adding or changing a function--that forces a recalc.

    This is a bad thing because as I'm writing code, I'm in the habit of hitting Save every few minutes (this is force of habit due to years of MS instability where apps would crash at random and I'd lose code--lose a few hours worth of prime code just once and you'll wear the paint off that Save button quickly!)

    So anyway...I'm guessing I'm screwed here unless anyone knows some possibly undocumented setting that disables forced recalc on code changes. But I've got to believe other people would have come across this.

    Another bit of useful info...I do have an xlam file attached to my Excel startup, it's a Linear Math app callled Lindo What's Best. But I'm not changing any cell or anything but my own module code when this recalc occurs so I still can't see where this would have any effect. There isn't a timer-controlled recalc because this isn't recalcing at a regular interval.

    I suppose, but it's far-fetched, that this xlam has a hook into the vba interface where it detects changes in the users own code and does the recalc.
    It's just very strange...not to mention time consuming because it's at least 60 seconds if not more, and Excel in its entirety is locked, I can't even go to another open workbook while this ones calculating.

    Thanks for any more help or thoughts,
    --Jim

  6. #6
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: How do I stop calculation??

    I can't get my sheet to re-calc when adding/changing subs or functions when calculation is set to manual. I installed the Lindo add-in and no change. I didn't use any of the Lindo functions in my worksheet though, not sure if that might make a difference. (In the vba code there is a procedure that does a full recalculation, but I'm not sure how it gets called -- umm, I mean, what vba code? Nothing to see here.) Doesn't appear to be the culprit.

+ 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