Basketball Userform adjustment

lacogada

Board Regular
Joined
Jan 26, 2011
Messages
170
Made a userform for basketball pool.

final4form.jpg


When I click options from different sections .... the previous section
does not stay picked.

I would like each section's button to stay selected when I click on another section.

Hers's some of the code

Code:
Private Sub OptionButton1_Click()
If OptionButton1 Then myStr = "Kansas"
Range("C2") = myStr
End Sub

Private Sub OptionButton2_Click()
If OptionButton2 Then myStr = "Notre Dame"
Range("C2") = myStr
End Sub

Private Sub OptionButton3_Click()
If OptionButton3 Then myStr = "Purdue"
Range("C2") = myStr
End Sub

Private Sub OptionButton4_Click()
If OptionButton4 Then myStr = "Pitt"
Range("E2") = myStr
End Sub

Private Sub OptionButton5_Click()
If OptionButton5 Then myStr = "Florida"
Range("E2") = myStr
End Sub
 

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
You need to put the different groups in a "Frame" (on the tool bar). Then they will be handled as independent groups. Only one selection per frame.

Gary
 
Upvote 0
Thanks for reply

Tried adding frame and it covers team sections.
Tried "sending to back" and that did not work.

Did I need to make the frame 1st ... then put the teams in seperate frames ?

If so, is there now a way to do it without having to redo all I've done ?
 
Last edited:
Upvote 0
Great .... that'll work.

The only thing now is the "frame outline" shows on the userform.

Is there a way to turn that off ?
 
Upvote 0
I don't know. Have a look in the properties for the frame. If you can't turn it off maybe you can make it the same color as the form or some other trick.

I know if you make it invisible it takes all the buttons with it.

Gary
 
Upvote 0
There is a "BorderStyle" in properties that allows to turn off.

Thanks for the help !
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,756
Members
452,940
Latest member
rootytrip

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