![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
How do you group option buttons from the forms toolbar, I have put them in group boxes but when I change the cell link on one they all change, I want to have two groups on one page linked to different cells. thanks
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Allentown, PA
Posts: 2,510
|
The whole idea of grouped option buttons is that the user can only choose one. i.e., What town do you live in? There is only ONE answer. Hence, you only need one cell to contain that value.
Perhaps that sheds some light for you?
__________________
~Anne Troy |
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
But I want to have two sets of buttons link to different cells total independent of the other ones, can this be done?
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Helena, MT
Posts: 13,690
|
You can do this by grouping them in frames. The thing to be careful about, is the option buttons must be entirely inside the frames If any part is outside the frame, the grouping will fail. Also, once an option box has been group and associated, it sometimes will not take a change. You may need to delete it and insert a new one.
|
|
|
|
|
|
#5 |
|
Guest
Posts: n/a
|
How do you insert frames?
|
|
|
|
#6 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
|
There should be a frame icon in the VB toolbox (just to the left of the command button in mine). In VB6 you need to draw (or cut and paste) option buttons directly onto the frame (ie not dragged on from the userform), so I presume the same is true of Excel VBA.
|
|
|
|
|
|
#7 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Helena, MT
Posts: 13,690
|
On the Form Toolbar, it is refered to as a Group Box
|
|
|
|
|
|
#8 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
|
Sorry, I didn't realise you were putting these onto a worksheet, frames don't appear in the sheet toolbox, you need to click on the More controls button at the bottom and go down to Microsoft Forms 2.0 Frame. Draw your frame, then right click on it in design mode and choose Frame Object- Edit to show the VBA toolobox. Draw your Option buttons onto the frame. You will need a separate frame for each group of buttons.
|
|
|
|
|
|
#9 |
|
Guest
Posts: n/a
|
Thanks I had them in a group box but part of the button must have been outside the frame.
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|