作为上一篇关于我的 VBA/Rhinoscript 的后续文章,当我从最初在 Excel 2007 中创建的 Excel 电子表格执行以下 VBA 代码时,我遇到了一个非常奇怪的“灾难性”错误,我现在正在尝试在 Excel 2016 中运行:
Set Rhino = CreateObject("Rhino4.Interface")
If (Err.Number <> 0) Then
'MsgBox ("Failed to create Rhino4 object")
Set Rhino = CreateObject("Rhino4.Application")
If (Err.Number <> 0) Then
MsgBox "Failed to create Rhino4 object: " & Err.Number
Exit Sub
End If
End If
CreateObject
检查失败后,Run-time error 8000fff Automation error, Catastrophic failure.
人们模糊地提到在 Excel 版本之间迁移是一个问题,并在工具-> 参考下查看,但我不确定我应该寻找什么。有人知道吗?
谢谢,
马特