Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Option Groups in User Forms in Excel 1

Status
Not open for further replies.

snowmantle

Programmer
Jun 20, 2005
70
GB
Hi,

My question is how do I get the value of the selected radio button in an option group of radio buttons in an Excel User form?
 
Check the Value of the Frame ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Sorry adding to this in case it is unclear... I mean getting the value for use for passing into a function maybe as the correct name of the button so I know which one was selected.
 
Again, the value of the OptionGroup itself.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Sorry I cant find an OptionGroup, my toolbox doesnt have it in the list.

I first created 3 OptionButtons and set their GroupName property to be the same.

Where should I be looking? tried using a frame but that doesnt have a value to check.
 
Sorry, I thought I was in an access forum.
For MSForms, search which OptionButton is True:
Code:
If OptionButton1.Value = True Then
  'your stuff here
ElseIf OptionButton2.Value = True Then
...
End If

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks for your help. Shame about that one. All sorted now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top