Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/28.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Excel 未定义弧度内部函数_Excel_Vba - Fatal编程技术网

Excel 未定义弧度内部函数

Excel 未定义弧度内部函数,excel,vba,Excel,Vba,为什么excel总是告诉我弧度的内部函数没有定义 以下是我的函数定义: 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 -

为什么excel总是告诉我弧度的内部函数没有定义

以下是我的函数定义:

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
为什么excel总是告诉我弧度的内部函数没有定义

因为它根本不存在

改用工作表功能:

beta = Application.WorksheetFunction.Radians(beta)