+ Reply to Thread
Results 1 to 12 of 12

Custom Function calculation problem

Hybrid View

  1. #1
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,433

    Re: Custom Function calculation problem

    It really is hard to provide a specific reason for your problem without the code.

    Can I assume that by UDF you mean a Function procedure that is being called from a spreadsheet cell?

    contains plenty of references to worksheet ranges.
    One suggestion: Are these references passed to the function through the argument list, or are they hard coded into the function? If the function needs information from the spreadsheet, it is usually best to pass that information through the argument list to avoid problems when the calling sheet/workbook is not the active workbook. Passing information through the argument list also eliminates (most of the time anyway) the need for application.volatile as Excel can readily figure out how the UDF fits into the calculation dependency tree.

  2. #2
    Registered User
    Join Date
    02-15-2009
    Location
    Aylesbury,England
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Custom Function calculation problem

    Most of the arguments are for various discount percentages and each argument is set to the value of the worksheet cell with the same name range.

    Is the use of values from the worksheet what is causing the problem when another open worksheet is calculated? After all these years I am surprised if there is not an effective solution.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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