Make sure that ALL the cells/ranges used in the Function appear in the
argument list for the function.
Excel looks at the argument list to determine when to recalculate the
function.
A poor alternative is to add Application.Volatile to the function, but
this will make the function calculate at every recalculation even when
it does not need to.
Charles Williams
Excel MVP
The Excel Calculation Site
http://www.DecisionModels.com
>I'm having trouble with a custom function that won't automatically
>recalculate like a built-in function would. So if I make a change to
>the sheet that would affect the value of this custom function, it will
>only recalculate if I go into the formula bar, then press enter. F9
>doesn't do the trick either. Am I missing something?