Radians内部函数未定义

时间:2014-02-08 09:29:46

标签: excel-vba vba excel

为什么excel不断告诉我radians内部函数没有定义

这是我的函数定义:

Public Function Ev(x As Double, length As Integer, beta As Double, curvature As Double) As Double
    Dim height As Double

    beta = Radians(beta)
    height = Round(length * Tan(beta), 0)
    Ev = height * (1 - (x / length)) ^ curvature

End Function

Err Screenshot

1 个答案:

答案 0 :(得分:3)

为什么excel一直告诉我radians内部函数没有定义?

因为不存在

改为使用WorksheetFunction:

beta = Application.WorksheetFunction.Radians(beta)