User Defined Functions

J

Jase

Hi Guys

I am using a user defined function that I wrote in the
code of the workbook, and it works fine. Except for the
fact that when I change data on the sheet that it is
referencing then the formula does not recalculate. Do you
know how to change this?

Thanks heaps
Jase
 
E

Earl Kiosterud

Laura,

If this is XL97, be sure to have service releases SR1 and SR2 installed.
 
A

Arvi Laanemets

Hi

From Excel2000 Help:
<
Volatile Method Example

This example marks the user-defined function "My_Func" as volatile. The
function will be recalculated whenever calculation occurs in any cells on
the worksheet on which this function appears.

Function My_Func()
Application.Volatile
'
' Remainder of the function
'
End Function
Arvi Laanemets
 
B

Bernard Liengme

If the variables used in the UDF are all specified in the arguments, then
Volatile is not needed.
If they are not all passed as arguments then the UDF is poorly coded.
Would help if we saw the code.

Bernard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top