Disable Control Checkboxes based on Option Button result

  • Thread starter Thread starter BJ
  • Start date Start date
B

BJ

Hello All

I have two option buttons in a spreadsheet.

When one of these option buttons is selected, I'd like to disable several
control checkboxes.

How can I accomplish this?

Thanks.

BJ
 
Private Sub OptionButton1_Click()
If OptionButton1.Value = True Then
CheckBox1.Enabled = False
End If
End Sub
 
if I'm disabling multiple checkboxes are the additional conditions just added
or is there additional syntax required?

I added the multiple lines and nothing is working - i.e. the checkboxes are
not being disabled. Thanks.

e.g.,

Private Sub OptionButton1_Click()
If OptionButton1.Value = True Then
CheckBox1.Enabled = False
CheckBox2.Enabled = False
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top