"Asin" doesn't work in VB for Excel macros

G

Guest

I get the error message "sub or function not defined" when I try to use ASIN
in VBA Excel. Works OK in the worksheet, asin gets changed to Asin when I
type it into VBA and Asin is listed as a function for VBA in the help but it
doesn't work?
 
D

Dave Peterson

Try application.asin()

Some worksheet functions have equivalent VBA functions. Some don't.

Some worksheet functions can be used in VBA (like this one).
 

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