Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA not seeing Excel functions 2

Status
Not open for further replies.

craigber

Programmer
May 5, 2003
1,092
US
I'm writing some VBA code in Excel 2003. For some reason, the code does not recognize Excel functions such as SQRT and FDIST. When I try to compile the code, I get the error "Sub or Function not defined". Any ideas on what's happening?

Craig Berntson
MCSD, Visual FoxPro MVP, Author, CrysDev: A Developer's Guide to Integrating Crystal Reports"
 
Hello,

as far as I know the worksheetfunctions sqrt and fdist are not supported in VBA.

There is however the function sqr in VBA which returns the square root.

You'll need to calculate the F distribution through it's mathematical equation.


Cheers,

Roel
 



Roel,

I did not know that, as a business application rather than a math/scientific type.

Thanx! ==> *

Skip,

[glasses] [red][/red]
[tongue]
 
Thanks for the star, glad to have been of help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top