Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 320
Default 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




Reply
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Option Buttons from the Forms Toolbar - Excel 2003 mickey Excel Worksheet Functions 2 October 14th 07 11:32 AM
Forms Option Buttons(Can be right mouse selected when sheet is loc Newbeetle Excel Discussion (Misc queries) 2 February 10th 07 04:12 PM
User forms "back" buttons DavidObeid Excel Discussion (Misc queries) 1 June 22nd 05 09:07 AM
Forms: Group Boxes and Option Buttons Kathryn[_4_] Excel Programming 2 October 17th 03 02:11 AM
Command Buttons on XL User Forms Hotbird Excel Programming 2 August 6th 03 01:42 PM


All times are GMT +1. The time now is 11:35 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"