Answer the question
In order to leave comments, you need to log in
How to fix error in Excel VBA formula?
There is a function code, but it throws an error. What's wrong?
Public Function fun1(x)
fun1=(x*x-5*2^0.5)/(2*x^3+1)
End Function
Answer the question
In order to leave comments, you need to log in
If you have at the beginning of the module indicated:
Option Explicit
, then this means that an explicit indication of the types of variables is required. Then the function should look like this:
Public Function fun1(x As Double) As Double
fun1=(x*x-5*2^0.5)/(2*x^3+1)
End Function
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question