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

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 checked/clicked in first group of option buttons.

What I want: When user selects 'NA' option button, disable all corresponding options in the second group (option buttons 2) for that question.


My worksheet currently looks like this ...

Option buttons 1Option buttons 2
1234NA1234
Attribute 1
Question 1
Question 2
Attribute 2
Question 1
Question 2
Attribute 3
Question 1
Question 2

<tbody>
</tbody>



If 'NA' is checked in Option buttons 1 then all corresponding options group 2 should get disabled.

I have already created two sets of option groups but unable to disable the second option buttons based on selection in the first group)


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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,214,605
Messages
6,120,476
Members
448,967
Latest member
visheshkotha

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