W
WilMar
Would someone be so kind as to get me started in the right direction.
Creating a UDF that initially needs to evaluate the average of a range,
however, Average is not a VBA function. I've tried the Evaluate function
with the worksheet function Average but my syntax must be wrong.
Is there an easy way or am I missing something. Here is the basis of
what I'm trying to do:
Function YearAvg(rng As Range)
YearAvg = Average(rng)
End Function
Thanks!
Bill
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Creating a UDF that initially needs to evaluate the average of a range,
however, Average is not a VBA function. I've tried the Evaluate function
with the worksheet function Average but my syntax must be wrong.
Is there an easy way or am I missing something. Here is the basis of
what I'm trying to do:
Function YearAvg(rng As Range)
YearAvg = Average(rng)
End Function
Thanks!
Bill
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!