Should I use a radio button or checkbox?

sous2817

Well-known Member
Joined
Feb 22, 2008
Messages
2,276
Hello, <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
I'm making a worksheet where the user has the options to select "yes" or "no". I used active x radio buttons because I feel they are more flexible. The problem I'm running in to is, what happens if there is an "unknown"? I can't find a way to "deselect" a radio button?<o:p></o:p>
<o:p></o:p>
I tried using 2 checkboxes using the following code:
<o:p></o:p>
Checkbox 1:
Rich (BB code):
If CheckBox2.Value = True Then
CheckBox1.Value = False
End If 
<o:p></o:p>
Checkbox2:
Rich (BB code):
If CheckBox1.Value = True Then
CheckBox2.Value = False
End If
<o:p></o:p>
The problem with this is, you have to deselect one checkbox before you can select the other. It works, but it’s a little more cumbersome then I was hoping. Is there a better solution?

Thanks for your time,<o:p></o:p>
 
You can't deselect and options button. I could make it work adding a third options button, but I'm kind of designed myself in to a corner in terms of space.

If I can be greedy, the best solution would be a way to add code in that makes it so an options button could be deselected once it is selected (click once to flag True, click againt to flag False). I think this is a limitation of an options button isn't it?
 
Upvote 0
Oh well, that's too bad...you can make a check box act like a radio button but not the other way around, weird.

At the very least, my problem is solved and I can't thank you enough....Have a great weekend!
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top