Normally UDFs only recalculate when linked cells change or if forced with the F9 key.
Make this the first line of your UDF to calculate whenever the sheet recalculates :-
Code:
Application.Volatile
-----------------------
Regards BrianB
Most problems occur from starting at the wrong place.
Use a cup of coffee to make Windows run faster.
It is easy until you know how.