+ Reply to Thread
Results 1 to 4 of 4

Calculation Loop

  1. #1
    Registered User
    Join Date
    03-24-2009
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    11

    Calculation Loop

    I have written a financial needs analysis program with 20 userforms for inputs, but most calculations done on the worksheets itself. The program however continues to go into a calculation loop and it has been impossible for me to determine what causes this.

    What are the main reason normally associated to such a continuous calculation.
    Maybe that will help me find the problem.
    Regards

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Calculation Loop

    Is it a calculation loop or a code loop?

    Do you have worksheet event code. Changing a cell whilst in the change event will cause the event to fire again unless you have disabled events.

    Do you have circular references on the sheet?
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Calculation Loop

    This could best be answered by allowing others to examine your code/workbook. Can you post a copy (scrubbed of sensitive data)?

    At least post the code for when to begin the calculations. Sounds like it could be related to incorrect looping.

  4. #4
    Registered User
    Join Date
    03-24-2009
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Calculation Loop

    Sorry it took so long to reply. (Out of town). Most events focus on the forms. There are no events linked to the worksheets. There are also no circular calculations.
    One change does however impact a significant amount of other calculations, eg an increase in the value of an asset changes 4 tax calcs, 3 costs calcs, a liquidity calc & 12 needs calcs.
    I have now turned calculation on manual and it only activates if a report is viewed or printed, I am moving most code out of the forms to modules and will see if this works.
    If it doesn't I'll pull an Arnie...
    I'll be Back

+ 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