Check box - recognise if it is checked or not?

Fireman_Simon

New Member
Joined
Nov 6, 2002
Messages
3
Hi Everyone!
Please help my "bitten-of more than I can chew project".
I have two columns next to one-another with check-boxes in them. One column for YES, and one for NO. What formula do I need for the recognition of the box being checked or not? Also, as the option is YES or NO, can I include something to prevent both check boxes in the same row being ticked OR not ticked?
Advice greatly appreciated.

Many thanks, Simon.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Corticus

Well-known Member
Joined
Apr 30, 2002
Messages
1,579
Hi,

First, to get value from checkbox, right-click on the checkbox, select properties, and put a cell reference in 'linked cell'. You will refer to this cell to test the status of the checkbox.

To prevent both yes and no from being clicked, try:

I'm using these names:
Yes = Checkbox1
No = Checkbox2

Now insert the following code on the sheet:
Code:
Private Sub CheckBox1_Change()

CheckBox2 = CheckBox1 + 1

End Sub

Private Sub CheckBox2_Change()

CheckBox1 = CheckBox2 + 1

End Sub

HTH,
Corticus
 

Forum statistics

Threads
1,144,048
Messages
5,722,224
Members
422,417
Latest member
Johhny

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
Top