Excel 未定义弧度内部函数
为什么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 -
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)