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