Private Sub Option1_Click()
Command1.Enabled = Not Option1.Value
End Sub
Private Sub Option2_Click()
Command1.Enabled = Option2.Value
End Sub
-----------------------------------------
下面代码也可以:
按下Option1时,command1不可用
Private Sub Option1_Click()
Command1.Enabled = false
End Sub
按下Option2时,command1可用
Private Sub Option2_Click()
Command1.Enabled = true
End Sub