+ Reply to Thread
Results 1 to 4 of 4

Can't break the endless "Calculate"

  1. #1
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Can't break the endless "Calculate"

    Hello,

    My spreadsheet, suddenly runs in an endless "Calculate" mode.
    The workbook has many macros and I don't know which one is causing this.
    I am trying to break it with Ctrl + break, but it won't break.

    1. How can I break the loop ?
    2. What is procedure to track down the code which causes this?

    Could you please advise?
    Thanks
    Last edited by 6StringJazzer; 03-21-2020 at 06:39 PM. Reason: Moved from Excel General

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,747

    Re: Can't break the endless "Calculate"

    What is "endless"? What is the longest it has run?

    I can think of two possibilities.

    1. You are in an infinite loop. You must identify any indefinite loops (Do While or Do Until) and determine which one is stuck. You can put debug.print statements in every loop and watch the Immediate Window. You can insert DoEvents in every loop, which will allow a interrupt and CTRL+BREAK should work. (It should work anyway.)
    2. You are doing a massive amount of updates that keep triggering automatic calculations. You can disable automatic calculations at the beginning of the macro and re-enable at the end.

    If you do not have private data in your file, attach it here and we can review your code.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Re: Can't break the endless "Calculate"

    6StringJazzer,

    OK, will try.
    Thanks

  4. #4
    Forum Contributor
    Join Date
    11-20-2007
    Location
    Felixstowe, England
    MS-Off Ver
    Excel 2013, 2019
    Posts
    217

    Re: Can't break the endless "Calculate"

    Just because the status bar shows "Calculate" doesn't mean Excel is stuck ... it may be that you are over the limit of number of dependencies that Excel can track:

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

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. Replies: 2
    Last Post: 07-24-2017, 02:19 AM
  3. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  4. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  5. How to calculate "Age of Asset" & "Monthly Repayment"‏
    By yjohari in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-30-2013, 07:27 AM
  6. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  7. Replies: 1
    Last Post: 10-22-2012, 09:38 AM

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