Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have user form with three option button so that the user can selec
one of the options. How can I store the returned value in a variable? Sub test() Dim f1, f2, f3 As Boolean UserForm1.Show f1 = UserForm1.OptionButton1.Value f2 = UserForm1.OptionButton2.Value f3 = UserForm1.OptionButton3.Value MsgBox f1 & f2 & f3 End Sub Evertime I run this procedure I always get False, False, False (ie th value set the properties section of the optionbutton). I found a way to return the True if I select an option and false when didn't but setting the ControlSource option of the properties sectio to cell. Is there a way I could get True when I select the optionand False whe I don't wihtout setting the ControlSource to a cell, since then I hav to have another Sheet that contains only the values from thes optionsbuttons -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
User Defined Function returning #Value! | Excel Worksheet Functions | |||
How do I fill a cell in a user form from a selection on same form? | Excel Discussion (Misc queries) | |||
Cell Values On User Form | Excel Programming | |||
I am looking to see if anybody has an equivalant user form to Outlooks CONTACT form | Excel Programming | |||
Returning User Initials | Excel Programming |