LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
Walter L. skinner
 
Posts: n/a
Default Create and Use Button Menu using visual Basic in Excel

The following code is very simple. All I need to do is figure out how get the
result of the userform entry from the click event. I apologize if seems to
easy but I have trouble with userforms and menus getting user data.
Thanks for Your Help

Sub test()
UserForm1.show
If Me.OptionButton1 = "True" Then
Debug.Print "Option One has been Selected"
Else
Debug.Print "This has failed miserably"
End If
End Sub


Private Sub OptionButton1_Click()
Dim Sel As String
Unload Me
MsgBox ("You Select Buton 1")
Sel = Me.OptionButton1
End Sub

Private Sub OptionButton2_Click()
Unload Me
MsgBox ("You Select Buton 2")
Unload Me
End Sub

Private Sub OptionButton3_Click()
MsgBox ("You Select Buton 3")
Unload Me
End Sub

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"