+ Reply to Thread
Results 1 to 5 of 5

My Function is not Auto Calculating

  1. #1
    Registered User
    Join Date
    06-13-2011
    Location
    Neston, England
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    38

    My Function is not Auto Calculating

    I have created a function (shown below) and I call it from my excel sheet with the following command

    =Progress_Status(Row())

    Calculate is set to Automatic. The cells type is General - Not Text (I read this may be the issue, but it is not)

    It calculates fine if I select the cell and press enter to re-enter the formula. But if I change any of the cells that the formuale uses it does not do anything, until I re-selct and re-press enter. I have tried doing it in various ways but no joy.

    The function is as follows:-
    Please Login or Register  to view this content.
    Any help would be as always much appreciated
    Last edited by Wongadob; 07-13-2011 at 01:53 PM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,978

    Re: My Function is not Auto Calculating

    Ideally a UDF should always have any cells it requires passed to it directly as arguments. If you cannot do that for some reason then you need:
    Please Login or Register  to view this content.
    added to the top of your function to cause a recalculation whenever the workbook recalculates. Note that it is much better practice to pass the required cells to the function.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    06-13-2011
    Location
    Neston, England
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    38

    Re: My Function is not Auto Calculating

    Thanks, Do you think if I passed the function a range that covers all cells I need to use, that would suffice or do I need to name them individually?

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,978

    Re: My Function is not Auto Calculating

    It should suffice to pass the whole range.

  5. #5
    Registered User
    Join Date
    06-13-2011
    Location
    Neston, England
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    38

    Re: My Function is not Auto Calculating

    Thanks Romperstomper! That worked a treat as a range.

+ 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