1
运行时错误 '91':对象变量或With块不设置运行时错误 '91'
我的代码是
Private Sub Workbook_Open()
Dim MenuBar As CommandBarButton
Set MenuBar = CommandBars(Standard).Controls(3)
MsgBox MenuBar.Caption
End Sub
请帮我解决这个错误。
看不清你是如何得到这些的。应该是'错误9:下标超出范围'。 – GSerg