要求当Option2未选中时Combo1是灰色的Private Sub Option2_Click()
If Option2.Value = True Then
Combo1.Enabled = True
Else
Combo1.Enabled = False
End If
End Sub好像是选择的事件不对,但是不知道用哪个事件
If Option2.Value = True Then
Combo1.Enabled = True
Else
Combo1.Enabled = False
End If
End Sub好像是选择的事件不对,但是不知道用哪个事件
Combo1.Enabled = False
End Sub
Private Sub Option2_Click()
Combo1.Enabled = True
End Sub
Private Sub OptionButton2_Change()
If Me.OptionButton2.Value = True Then
Me.ComboBox1.Enabled = True
Else
Me.ComboBox1.Enabled = False
End If
End Sub
这样可以。vb里不知道怎么弄
If Option1.Value Then
Combo1.Enabled = False
Else
Combo1.Enabled = True
End If
End SubPrivate Sub Option2_Click()
If Option2.Value Then
Combo1.Enabled = True
Else
Combo1.Enabled = False
End If
End Sub