Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Option Buttons


Greetings !

I have several InputBoxes.

I want to input values for four Boolean variables.

I know how to do it with InputBoxes, but "Option buttons"
are a closed book to me.

I would be very grateful if SKS would be so kind as to
give me some so=ample code that I might adapt for my
purpose ?


RClay AT haswell DOT com
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Option Buttons

You want to replace your four input boxes with a userform with 4 option
buttons?

If so, just create a userform. Drag an option button to it and position it.
Repeat to get 4.

Drag a commandbutton on to the userform. Right click on the commandbutton
and select view code

Private Sub Commandbutton1_Click()
me.hide
End Sub

In a general module you could use code like this to show and process the
form.

Sub showform()
Userform1.show
Select Case True
Case OptionButton1.Value
' code for optionbutton1 selected
Case OptionButton2.Value
' code for optionbutton2 selected


Case OptionButton3.Value
' code for optionbutton3 selected

Case OptionButton4.Value
' code for optionbutton4 selected

End Select
Unload Userform1

End Sub

--
Regards,
Tom Ogilvy


"Robin Clay" wrote in message
...

Greetings !

I have several InputBoxes.

I want to input values for four Boolean variables.

I know how to do it with InputBoxes, but "Option buttons"
are a closed book to me.

I would be very grateful if SKS would be so kind as to
give me some so=ample code that I might adapt for my
purpose ?


RClay AT haswell DOT com



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Option Buttons

I had written:
I have several InputBoxes.

I want to input values for four Boolean variables.

I know how to do it with InputBoxes,
but "Option buttons"
are a closed book to me.

I would be very grateful if SKS would be so kind as to
give me some sample code that I might adapt for my
purpose ?



Tom was kind enough to respond:
You want to replace your four input boxes
with a userform with 4 option buttons?


Do I ?

If so, just create a userform.


Pah !

"Just" create a userform, he says !

I'm lost already, already.... :(


But it was a kind thought, so Thank you, Tom.



RClay AT haswell DOT com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Option Buttons

See corrected answer to you new posting.

--
Regards,
Tom Ogilvy

"Robin Clay" wrote in message
...
I had written:
I have several InputBoxes.

I want to input values for four Boolean variables.

I know how to do it with InputBoxes,
but "Option buttons"
are a closed book to me.

I would be very grateful if SKS would be so kind as to
give me some sample code that I might adapt for my
purpose ?



Tom was kind enough to respond:
You want to replace your four input boxes
with a userform with 4 option buttons?


Do I ?

If so, just create a userform.


Pah !

"Just" create a userform, he says !

I'm lost already, already.... :(


But it was a kind thought, so Thank you, Tom.



RClay AT haswell DOT com



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/Radio Buttons John Calder New Users to Excel 7 May 16th 08 03:51 AM
option buttons help kb Excel Worksheet Functions 2 June 18th 07 11:06 PM
Option Buttons Mike Rogers Excel Discussion (Misc queries) 2 November 21st 05 07:33 PM
Option Buttons Grant90 Excel Discussion (Misc queries) 1 July 29th 05 02:34 PM
Option Buttons Alan Excel Programming 1 January 8th 04 05:55 PM


All times are GMT +1. The time now is 06:45 PM.

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

About Us

"It's about Microsoft Excel"