I am looking to make sort of a little form with groups of checkboxes and option buttons which will later feed a vba code. I need to make group boxes with 3 option boxes in them but independent. As it is now i press one of the options bokes and it inchecks an option box in the other group. They are all connected and i don't want this. Any Ideas? Thanks
You need to enclose each group of option buttons in a Group Box control. You can access this from the same menu you used to add the buttons.
See this link for more info: http://office.microsoft.com/en-us/excel-help/add-a-group-box-or-frame-control-to-a-worksheet-HP010236679.aspx.
A simple way to do is to set the GroupName property for the option buttons in the form. Set it to OB1 for first three option buttons and OB2 for the next three option buttons. Now they will work as two groups and you can check one each from eithr groups.
You need to enclose each group of option buttons in a Group Box control. You can access this from the same menu you used to add the buttons.
See this link for more info: http://office.microsoft.com/en-us/excel-help/add-a-group-box-or-frame-control-to-a-worksheet-HP010236679.aspx.
I agree with Nixz's response and would like to add more detail. Nixz posted: A simple way to do is to set the GroupName property for the option buttons in the form. Set it to OB1 for first three option buttons and OB2 for the next three option buttons. Now they will work as two groups and you can check one each from eithr groups.
To make this work for me, I edited the GroupName in Properties for each radio button selection. For one group, I edited the two selections' GroupName(s) and called them each Question2. For the second set, I edited the GroupName for each radio button choice, calling them both Question5. This told excel they were grouped, even though they were in a Group Box, eXcel was not recognizing them as in separate Group Boxes. Hope this helps!
As an alternative to previous answers, I will present a very special technique that I think most of you will just love, in case you are willing to take the effort on following my last Exact Instructions Challenge.
Since it seems now I caught your attention, let's do it.
Although you must still define at least two Group Boxes, I suggest that you:
Add one base Option Button anywhere in worksheet outside of any group. You will use this Option Button for replication. You may delete it later, once you are finished
Press ESC twice, to unselect control;
Point the mouse cursor on base Option Button and press Right Click. This will select the control and open a small menu;
Press ESC once. This will close the small menu, but it will keep target control selected;
Now comes the tricky part:
5.1 Press CTRL key;
5.2 Press mouse LEFT CLICK button;
5.3 While keeping both pressed, move you mouse to your target group inner area. This will show a replic of your base control;
5.4 Release your mouse LEFT CLICK button. This will create a replic your Option Button inside your target group;
5.5 You may now repeat steps 5.2 thru 5.4 to create any replics you need.
Once you're done, you may release your CTRL key and delete your base Option Button, selecting it using Right Click, pressing ESC key once and pressing DEL key.
For beginners, bear in mind that this neat replication feature (CTRL+LeftClick drag) is widely used on graphical editors.
Hope it helps others from preventing the ridiculous time I did mastering how to overcome this abnoxious UI behavior.
You need to set up same group names in properties editor for each option button separately! when you copy and paste you option buttons the default group is "menu" even after grouping it from menu the default group is still same "menu" so that's why you see the strange behavior of groups.
© 2022 - 2024 — McMap. All rights reserved.