Linking Checkboxes

Smurfit-Stone

Active Member
Joined
Dec 1, 2004
Messages
485
Hello Board,
Is there a way to get checkboxes to act like radio buttons? I need checkboxes to respond like radio buttons where if one is checked the other is not etc. I think a IF statement might do it, but I'm not sure how to write it...something like =if(z2=true,z12=false) and if(z12=true,z2=false). I have a sheet with a lot of checkboxes already on it, so I'd like to just add a formula to get them to act like radio buttons, (I don't like radio buttons and dealing with those frames or whatever their called) I have lots of checkboxes. Thanks in advance.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Usually the option button is the best way to go cuz it's much less of a hassle.
However, if you insist.

You could loop through an array of strings (names of the checkboxes) and then use Control(string) in order to manipulate the 'selected' object.

or you could loop through the whole checkboxes (google loop through checkboxes) and then find the code and manipulate it as needed.

The only problem of these two will be that you will need to add the code to every single change event of the checkboxes.
 
Upvote 0

Forum statistics

Threads
1,224,560
Messages
6,179,519
Members
452,921
Latest member
BBQKING

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