Option Buttons Group

Lance-R

New Member
Joined
Apr 28, 2008
Messages
13
Howdy,

I've searched the non-existent documentation in Excel, tried the internet and what books I had but cannot find the answer.

In Access, I can create an option group, and then that group will have an attached value based on which button is chosen, which I can then use in a case statement or in other creative ways.

In Excel, I've created an option group with a groupname, but I can't find anyway to access this value. If it doesn't exist then how do you make the decisions in code without checking every option button?
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
You do check the option buttons - I usually use a Select Case True statement.
 
Upvote 0
How exactly have you created these option buttons?
 
Upvote 0
whoops, sorry.

I used the Active-X controls, just dropped two buttons, then changed the groupname in properties.
 
Upvote 0
Are they on a userform or a worksheet?
 
Upvote 0
You either have to loop through them in code, or set each one's LinkedCell property to a different cell and check which contains TRUE.
 
Upvote 0
Thanks, I sure wish the Excel people would talk to the Access people.
Good things could happen.
 
Upvote 0

Forum statistics

Threads
1,213,558
Messages
6,114,296
Members
448,564
Latest member
ED38

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