Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jono
 
Posts: n/a
Default Can I an option button in two groups?

I have two groups of option buttons one for an interface (RS232, RS422, etc.)
and another for a protocol (Standard, EWIS, etc.) I would like to have an
option button (N/A) that deselects both of these groups and is deselected
when selecting a button in either of these groups. In these two groups if one
group has something selected the other group will also have something
selected.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar
 
Posts: n/a
Default Can I an option button in two groups?

You should be able to accomplish this by adding code to your (N/A) option
button to clear the contents of all the linked cells for your entire option
groups including itself. Something like this:


Private Sub OptionButton10_Click()

Range("A1:A10").Value = ""

End Sub


HTH,
Elkar

"Jono" wrote:

I have two groups of option buttons one for an interface (RS232, RS422, etc.)
and another for a protocol (Standard, EWIS, etc.) I would like to have an
option button (N/A) that deselects both of these groups and is deselected
when selecting a button in either of these groups. In these two groups if one
group has something selected the other group will also have something
selected.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jono
 
Posts: n/a
Default Can I an option button in two groups?

Thank you for the response but I don't understand. I don't have any linked
cells. when I placed the option buttons on the worksheet I changed the group
name for each member of that group ie. Option buttons 1 and 2 in group
"Interface". Option buttons 3 and 4 in group "Protocol". I would like one
button that clears both groups. and is itself cleared if either group has a
member selected.

Also where do I find info on how to do what you suggested?

"Elkar" wrote:

You should be able to accomplish this by adding code to your (N/A) option
button to clear the contents of all the linked cells for your entire option
groups including itself. Something like this:


Private Sub OptionButton10_Click()

Range("A1:A10").Value = ""

End Sub


HTH,
Elkar

"Jono" wrote:

I have two groups of option buttons one for an interface (RS232, RS422, etc.)
and another for a protocol (Standard, EWIS, etc.) I would like to have an
option button (N/A) that deselects both of these groups and is deselected
when selecting a button in either of these groups. In these two groups if one
group has something selected the other group will also have something
selected.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar
 
Posts: n/a
Default Can I an option button in two groups?

There's probably a more efficient way to do this using Group Names, but
writing code isn't my strongest point. Since you're not using Linked Cells,
you can refer to each OptionButton by name and set it to FALSE:

Private Sub OptionButton10_Click()

OptionButton1.Value = FALSE
OptionButton2.Value = FALSE
OptionButton3.Value = FALSE
OptionButton4.Value = FALSE

End Sub

Hopefully that makes sense. If its not helping, then maybe try your
question on the "Excel Programming" board.

Elkar

"Jono" wrote:

Thank you for the response but I don't understand. I don't have any linked
cells. when I placed the option buttons on the worksheet I changed the group
name for each member of that group ie. Option buttons 1 and 2 in group
"Interface". Option buttons 3 and 4 in group "Protocol". I would like one
button that clears both groups. and is itself cleared if either group has a
member selected.

Also where do I find info on how to do what you suggested?

"Elkar" wrote:

You should be able to accomplish this by adding code to your (N/A) option
button to clear the contents of all the linked cells for your entire option
groups including itself. Something like this:


Private Sub OptionButton10_Click()

Range("A1:A10").Value = ""

End Sub


HTH,
Elkar

"Jono" wrote:

I have two groups of option buttons one for an interface (RS232, RS422, etc.)
and another for a protocol (Standard, EWIS, etc.) I would like to have an
option button (N/A) that deselects both of these groups and is deselected
when selecting a button in either of these groups. In these two groups if one
group has something selected the other group will also have something
selected.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jono
 
Posts: n/a
Default Can I an option button in two groups?

Efficientcy is overrated. As long as it works in the end that's all that
matters to me.
Thank you for a solution, it does what I wanted.

Know anything about comboboxes? I put in a couple of questions yesterday
about validation and pictures and I haven't yet received a response.

"Elkar" wrote:

There's probably a more efficient way to do this using Group Names, but
writing code isn't my strongest point. Since you're not using Linked Cells,
you can refer to each OptionButton by name and set it to FALSE:

Private Sub OptionButton10_Click()

OptionButton1.Value = FALSE
OptionButton2.Value = FALSE
OptionButton3.Value = FALSE
OptionButton4.Value = FALSE

End Sub

Hopefully that makes sense. If its not helping, then maybe try your
question on the "Excel Programming" board.

Elkar

"Jono" wrote:

Thank you for the response but I don't understand. I don't have any linked
cells. when I placed the option buttons on the worksheet I changed the group
name for each member of that group ie. Option buttons 1 and 2 in group
"Interface". Option buttons 3 and 4 in group "Protocol". I would like one
button that clears both groups. and is itself cleared if either group has a
member selected.

Also where do I find info on how to do what you suggested?

"Elkar" wrote:

You should be able to accomplish this by adding code to your (N/A) option
button to clear the contents of all the linked cells for your entire option
groups including itself. Something like this:


Private Sub OptionButton10_Click()

Range("A1:A10").Value = ""

End Sub


HTH,
Elkar

"Jono" wrote:

I have two groups of option buttons one for an interface (RS232, RS422, etc.)
and another for a protocol (Standard, EWIS, etc.) I would like to have an
option button (N/A) that deselects both of these groups and is deselected
when selecting a button in either of these groups. In these two groups if one
group has something selected the other group will also have something
selected.

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
Why does Option Button not hold transparent property? ARB Excel Discussion (Misc queries) 1 August 2nd 05 06:47 PM
Resize option button Mario Excel Discussion (Misc queries) 1 July 27th 05 01:30 AM
How to edit the size and make it bold of the Option Button text? Cammie Excel Discussion (Misc queries) 1 February 23rd 05 01:57 AM
Macro to simply bring up the Find dialogue box?? marika1981 Excel Discussion (Misc queries) 14 January 14th 05 10:47 PM
Need help with Option Button dynamic background color Gary F Shelton Excel Discussion (Misc queries) 1 January 11th 05 05:34 PM


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

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"