2
我想检查这些简单的单选按钮组的值,但我的语法关闭,有谁知道该怎么改? 注意:它们是不包含ActiveX的Excel选项按钮,它们不在用户窗体上。
If Worksheets("Input").Shapes("Option Button 3").Select.Value = xlOn Then
MsgBox "fir"
ElseIf Worksheets("Input").Shapes("Option Button 4").Select.Value = xlOn Then
MsgBox "sec"
Else
MsgBox "none" 'in case they were deleted off the sheet
End If