Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This should be easy...how does one determine which of a set of grouped
option buttons is selected? Let's say I have 4 option buttons (optionbutton1, optionbutton2, etc) with groupname set to Season. The user selects....winter, which corresponds to optionbutton4. I can check each one... If Userform1.OptionButton1.Value = -1 Then x = 1 If Userform1.OptionButton2.Value = -1 Then x = 2 If Userform1.OptionButton3.Value = -1 Then x = 3 If Userform1.OptionButton4.Value = -1 Then x = 4 but there MUST be a better way!! I have many groups and many, many option buttons on my form. The above solution quickly becomes tedious. Thanks, John |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Option Buttons, Forms Control, Excel 2007 - 3 options | Excel Worksheet Functions | |||
Option Buttons from the Forms Toolbar - Excel 2003 | Excel Worksheet Functions | |||
Forms Option Buttons(Can be right mouse selected when sheet is loc | Excel Discussion (Misc queries) | |||
Option Buttons on User Forms | Excel Programming | |||
Forms: Group Boxes and Option Buttons | Excel Programming |