J
J
Hi there,
Does anyone know how within a UDF, how can I retrieve the current cell's
value ? I have tried application.caller.value and application.caller.text
but to no avail. I don't have any intentions to pass it as a parameter. I am
basically trying to reduce the recalculation on cells with UDF.
eg.
Public function myudf( recalc as boolean, p1,p2 )
if recalc then
myudf = p1 + p2
else
myudf = application.caller.value
endif
end function
Appreciate any help anyone can offer.
Rdgs,
Terry
Does anyone know how within a UDF, how can I retrieve the current cell's
value ? I have tried application.caller.value and application.caller.text
but to no avail. I don't have any intentions to pass it as a parameter. I am
basically trying to reduce the recalculation on cells with UDF.
eg.
Public function myudf( recalc as boolean, p1,p2 )
if recalc then
myudf = p1 + p2
else
myudf = application.caller.value
endif
end function
Appreciate any help anyone can offer.
Rdgs,
Terry