ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Option Buttons on User Forms (https://www.excelbanter.com/excel-programming/281089-option-buttons-user-forms.html)

ibeetb

Option Buttons on User Forms
 
If I have 4 option buttons on a user form withing a frame (which makes them
mutually exclusive), what kind of code can I write to tell me which option
button was pressed. Assume that they are named: opt1, opt2, opt3, opt4

Thanks



Bob Umlas[_3_]

Option Buttons on User Forms
 
Select Case True
Case Me.Opt1.Value
...
Case Me.Opt2.Value
...
Case Me.Opt3.Value
...
Case Me.Opt4.Value
...
End Select


"ibeetb" wrote in message
...
If I have 4 option buttons on a user form withing a frame (which makes

them
mutually exclusive), what kind of code can I write to tell me which option
button was pressed. Assume that they are named: opt1, opt2, opt3, opt4

Thanks






All times are GMT +1. The time now is 03:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com