Disable option buttons - Need VBA to disable second group of option buttns based on response in the first

ex123

New Member
Joined
Jun 15, 2013
Messages
4
Dear All,

I am creating a survey in Excel 2010, where I need to disable the second group of option buttons based on response given/clicked in first group of option buttons.

What I want: If the user selects 'NA' radio/option button, assign its value as '0', and disable all corresponding options in the second group (option buttons 2).


My worksheet looks like this ...



1
2
3
4
NA
1
2
3
4
Attribute 1









Question 1









Question 2









Attribute 2









Question 1









Question 2









Attribute 3









Question 1









Question 2










<tbody>
[TD="colspan: 5"] Option buttons 1
[/TD]
[TD="colspan: 4"] Option buttons 2
[/TD]

</tbody>


If only 'NA' is checked in Option buttons 1 then all corresponding options group 2 should get disabled, else user should be able to check/choose option in both groups of option buttons.

I have already created the option groups but unable to disable based on selection in the first group)

Unable to upload my workbook as file attachment in this forum.

Thanks for reading and look for your help (<acronym title="visual basic for applications" style="border-width: 0px 0px 1px; border-bottom-style: dotted; border-bottom-color: rgb(0, 0, 0); cursor: help; color: rgb(51, 51, 51); background-color: rgb(250, 250, 250);">VBA</acronym> code) to above problem.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,223,162
Messages
6,170,431
Members
452,326
Latest member
johnshaji

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