+ Reply to Thread
Results 1 to 4 of 4

Formulas don't calculate

  1. #1
    Forum Contributor
    Join Date
    12-04-2003
    Location
    Burrton, Kansas USA
    MS-Off Ver
    2003
    Posts
    162

    Formulas don't calculate

    Hi!
    I have a workbook with alot of macros. Sometimes (not always) I have formulas (not always the same formulas) that will not calculate even though they appear OK. I have to rebuild the dependancy tree (ctrl+alt+shift+F9) to get them to calculate.
    Since I am a novice at this (VB) I may have some bad code causing the problem. Is there a code that will cause you to rebuild the dependancy tree? What might it look like so I can start my search?

    Thanks for any suggestions or help! And thanks for your time!!

  2. #2
    xLBaron
    Guest

    Re: Formulas don't calculate

    Hi Brian -

    Try adding this to the end of your macro:

    application.CalculateFull

    If this doesn't work then try:

    Add this macro to your workbook

    Sub CalculateFull()
    application.CalculateFull
    End Sub

    then add this to the end of each of your macros

    application.Run "' Workbook Name .xls'!CalculateFull"

    Good luck


  3. #3
    Forum Contributor
    Join Date
    12-04-2003
    Location
    Burrton, Kansas USA
    MS-Off Ver
    2003
    Posts
    162
    Thanks Baron! I'll try it!

  4. #4
    Irina
    Guest

    Re: Formulas don't calculate

    Calculate All will lead to forced calculation of all open workbooks, but it
    may be not reasonably. Try the following:


    Application.Calculation = xlCalculationManual
    For Each rabsheet In .Worksheets
    rabsheet.Activate
    rabsheet.UsedRange.Calculate
    Next
    Application.Calculation = xlCalculationAutomatic



    "xLBaron" wrote:

    > Hi Brian -
    >
    > Try adding this to the end of your macro:
    >
    > application.CalculateFull
    >
    > If this doesn't work then try:
    >
    > Add this macro to your workbook
    >
    > Sub CalculateFull()
    > application.CalculateFull
    > End Sub
    >
    > then add this to the end of each of your macros
    >
    > application.Run "' Workbook Name .xls'!CalculateFull"
    >
    > Good luck
    >
    >


+ 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