在我的主 excel 页面上,我有两个名为 OptionButton1 和 OptionButton2 的 ActiveX 控件单选按钮,我想将其用于是/否选项。
在我的代码中,我有以下内容:
If OptionButton1.Value = True Then
MsgBox "Yes."
ElseIf OptionButton2.Value = True Then
MsgBox "No."
End If
当我尝试运行宏时,出现此错误:
Runtime error '424':
Object Required
我该如何解决?