我正在编写VBA宏,并已导入mscorlib.dll以引用System.Math。
Sub draw16mmButtonHole()
Dim test As Double
test = System.Math.ASin(0) 'this is where the error happens
End Sub
显然,错误424通常在调用返回对象时发生,可以通过附加set
到变量赋值来解决;错误424通常在调用返回对象时发生。但是,这里会发生同样的错误。
除了上述行为之外,尝试从VBA调用.NET函数时,还会发生错误424。VBA无法做到这一点。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句