Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default more than two optionbuttons in a group

Hi All,

I thought that optionbuttons behave like radio buttons in other programming
environments, but I'm experiencing that optionbuttons (even if there are more
than 2 of them) within the same group set the linked cell to TRUE/FALSE .

How can I achieve that a 3 or more member optionbutton group set the linked
cell to 1,2,3,... respectively depending on which optionbutton was clicked?
Or what is the method to create a selection structure with more than 2
choices?

Thanks,
Stefi

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default more than two optionbuttons in a group

Use option buttons from the Forms toolbar.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Stefi" wrote in message
...
Hi All,

I thought that optionbuttons behave like radio buttons in other

programming
environments, but I'm experiencing that optionbuttons (even if there are

more
than 2 of them) within the same group set the linked cell to TRUE/FALSE .

How can I achieve that a 3 or more member optionbutton group set the

linked
cell to 1,2,3,... respectively depending on which optionbutton was

clicked?
Or what is the method to create a selection structure with more than 2
choices?

Thanks,
Stefi



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default more than two optionbuttons in a group

Thanks Bob, I don't understand the reason why MS developers chose this
unreasonable solution but I'll do that not being other possibility...

Regards,
Stefi

"Bob Phillips" wrote:

Use option buttons from the Forms toolbar.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Stefi" wrote in message
...
Hi All,

I thought that optionbuttons behave like radio buttons in other

programming
environments, but I'm experiencing that optionbuttons (even if there are

more
than 2 of them) within the same group set the linked cell to TRUE/FALSE .

How can I achieve that a 3 or more member optionbutton group set the

linked
cell to 1,2,3,... respectively depending on which optionbutton was

clicked?
Or what is the method to create a selection structure with more than 2
choices?

Thanks,
Stefi




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default more than two optionbuttons in a group

Stefi,
If you set all the options buttons in question to the same GroupName, giving
each their own LinkedCell, you can have as many as you need .
You would then some formula and/or helper cell to convert to the True value
to a numeric.

NickHK

"Stefi" wrote in message
...
Thanks Bob, I don't understand the reason why MS developers chose this
unreasonable solution but I'll do that not being other possibility...

Regards,
Stefi

"Bob Phillips" wrote:

Use option buttons from the Forms toolbar.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Stefi" wrote in message
...
Hi All,

I thought that optionbuttons behave like radio buttons in other

programming
environments, but I'm experiencing that optionbuttons (even if there

are
more
than 2 of them) within the same group set the linked cell to

TRUE/FALSE .

How can I achieve that a 3 or more member optionbutton group set the

linked
cell to 1,2,3,... respectively depending on which optionbutton was

clicked?
Or what is the method to create a selection structure with more than 2
choices?

Thanks,
Stefi






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default more than two optionbuttons in a group

Thanks Nick, I should have never thought of that! A little bit complicated
but this is what I was looking for!

Regards,
Stefi

"NickHK" wrote:

Stefi,
If you set all the options buttons in question to the same GroupName, giving
each their own LinkedCell, you can have as many as you need .
You would then some formula and/or helper cell to convert to the True value
to a numeric.

NickHK

"Stefi" wrote in message
...
Thanks Bob, I don't understand the reason why MS developers chose this
unreasonable solution but I'll do that not being other possibility...

Regards,
Stefi

"Bob Phillips" wrote:

Use option buttons from the Forms toolbar.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Stefi" wrote in message
...
Hi All,

I thought that optionbuttons behave like radio buttons in other
programming
environments, but I'm experiencing that optionbuttons (even if there

are
more
than 2 of them) within the same group set the linked cell to

TRUE/FALSE .

How can I achieve that a 3 or more member optionbutton group set the
linked
cell to 1,2,3,... respectively depending on which optionbutton was
clicked?
Or what is the method to create a selection structure with more than 2
choices?

Thanks,
Stefi







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
Adding a value to OptionButtons Hoobes Excel Programming 2 May 29th 06 11:27 AM
Embedded Optionbuttons Todd Huttenstine Excel Programming 1 February 28th 05 10:35 PM
Disabling a 'Group' of OptionButtons JimP Excel Programming 2 January 26th 04 02:48 AM
OptionButtons Paul Excel Programming 4 December 4th 03 04:12 PM
optionbuttons Phil Perry Excel Programming 1 July 10th 03 09:13 PM


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