If an option button is clckd then show another group option

KJ

New Member
Joined
Apr 3, 2002
Messages
9
Please help!

I'm using MS Excel 97.

I have a group option box of a number of teams ie the first one is Team 1 all the way to Team 9. If Team 1 is clicked I would like another group option box to appear with the Team 1 members and if Team 2 is clicked I would like their members to appear.

As I am unfamiliar with VBA I am finding this quite difficult.

I'm sure there is a genius out there who know's the answer.

Many thanks

KJ
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Re: If an option button is clckd then show another group opt

That's possible, but I think your UserForm would look better if you use ComboBoxes for the team members alongside your OptionButtons. then you can toggle theie Visible property depending on which OptionButton is selected. Example:

Code:
Private Sub UserForm_Initialize()
    OptionButton1.Value = True
    ComboBox1.Visible = True
    ComboBox2.Visible = False
End Sub

Private Sub OptionButton1_Click()
    ComboBox1.Visible = True
    ComboBox2.Visible = False
End Sub

Private Sub OptionButton2_Click()
    ComboBox1.Visible = False
    ComboBox2.Visible = True
End Sub
 
Upvote 0
Re: If an option button is clckd then show another group opt

WOW!

Andrew - that was fast work!

Thankyou for this - I'll give it a go.

Have a fantastic weekend.

KJ
 
Upvote 0

Forum statistics

Threads
1,221,706
Messages
6,161,406
Members
451,703
Latest member
rvan07

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top