+ Reply to Thread
Results 1 to 4 of 4

Grouping Optionbuttons on the Spreadsheet (Not on a Form)

  1. #1
    Registered User
    Join Date
    10-04-2008
    Location
    New York
    Posts
    7

    Grouping Optionbuttons on the Spreadsheet (Not on a Form)

    I have two groups of option buttons. One group has 15 option buttons the other has 2 option buttons.

    When I click on one group it deselects the option button in the other group causing no buttons to be selected in the second group.

    In other word only one of the 17 buttons is shown selected at a time.

    By "selected" I mean the filled in circle is shown within the larger circle.

    The two groups of buttons are linked to different cells in the spreadsheet.

    How do I keep the two groups from interaction with each other?
    Last edited by dwinmac; 10-13-2008 at 06:28 PM. Reason: enable notification

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Put each group in a separate frame.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    10-04-2008
    Location
    New York
    Posts
    7
    I put the option buttons in a group box and grouped the two option buttons and the groupbox by selecting all three and right clicking to "Grouping" -> "Group". I put the other 15 option buttons in a second Group Box just as I did the two described above.

    This does allow both groups to have one button selected now.

    However, now my code in the sheet activate event doesn't work. Instead of causing OptionButton 16 to look selected it causes both optionbuttons in the group to appear deselected. Using the "Selection and Visibility" pane the two option Buttons are 16 and 41, the Group Box is 33 and the Group is 49.
    Please Login or Register  to view this content.
    I did verify that the Option Buttons are still linked to Y3.
    Do I have to include the Group in the Range statement somehow?

    I couldn't get the Active X frame to work at all. I inserted the frame and selected the edit mode from the right click (Frame_Object -> Edit). Then I put the option buttons in the frame. I selected the properties but I could see no way to link them to the macro they each have to run.

  4. #4
    Registered User
    Join Date
    10-04-2008
    Location
    New York
    Posts
    7
    Basically it is solved. At least I managed to get it working the way I wanted it to.

    I think the trick is not to try to copy the controls from one sheet to another but rather create them all from scratch on each sheet. Perhaps I should add "unless you really know what you are doing".

    I'm not really sure that I used the group boxes and the grouping correctly. In fact on one sheet it worked properly without putting a group box around one group of optionbuttons but instead just grouped the optionbuttons.

    It was a little frustrating but I'm learning.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Embed (View) Spreadsheet in VBA Form - Excel 2007
    By amanda_m_wilson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-23-2008, 11:58 PM
  2. spreadsheet on form disappears
    By leewil in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2008, 08:55 AM
  3. Saving information from form on Spreadsheet
    By Sep280 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-30-2007, 04:06 PM
  4. Replies: 12
    Last Post: 06-20-2007, 05:07 PM
  5. Making optionbuttons disabled on form when first opening
    By raw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-04-2006, 03:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1