NewUser2

Board Regular
Joined
Jan 27, 2015
Messages
54
Hi, I have an excel page that a user will be inputting information to generate some result. In this page i have a section that says: "Is this a quarterly report?" followed by a drop down list with "Yes" or "No". If they click yes, I have 4 radio buttons beside it that they can click depending on which quarter it is.

Is there a way to make these buttons visable if cell B2 (the "Yes", "No" list) = "Yes", then hide them if B2 = "No", by modifying the VB code for each button?

Thank you in advance for your help!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
You'll want to leverage the Worksheet_Change Event and use either the visible or the enabled property of the optionbutton. Personally, I would go with the enabled property to show the users that there are additional options once they select Yes.
 
Upvote 0
So I am not really sure how to do that... I am using Excel 2007. When I right click the button I get 2 options, 1. Assign Macro, 2. Format Control.

Under format control there isnt anything that has to do with visability, or enabling. In fact, there are very limited options under formatting.

Thanks,


You'll want to leverage the Worksheet_Change Event and use either the visible or the enabled property of the optionbutton. Personally, I would go with the enabled property to show the users that there are additional options once they select Yes.
 
Upvote 0

Forum statistics

Threads
1,216,411
Messages
6,130,440
Members
449,581
Latest member
econtent2

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