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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
40,413
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
You do check the option buttons - I usually use a Select Case True statement.
 
Upvote 0

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,358
Office Version
  1. 365
Platform
  1. Windows
How exactly have you created these option buttons?
 
Upvote 0

Lance-R

New Member
Joined
Apr 28, 2008
Messages
13
whoops, sorry.

I used the Active-X controls, just dropped two buttons, then changed the groupname in properties.
 
Upvote 0

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
40,413
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Are they on a userform or a worksheet?
 
Upvote 0

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
40,413
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
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

Lance-R

New Member
Joined
Apr 28, 2008
Messages
13
Thanks, I sure wish the Excel people would talk to the Access people.
Good things could happen.
 
Upvote 0

Forum statistics

Threads
1,191,500
Messages
5,986,921
Members
440,065
Latest member
JCH136

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