+ Reply to Thread
Results 1 to 6 of 6

Radio button group

Hybrid View

  1. #1
    Registered User
    Join Date
    07-18-2007
    Location
    Seattle, WA, USA
    MS-Off Ver
    2016
    Posts
    42

    Radio button group

    I have grouped 4 radio buttons together. However, the group only seems to recognize 3 "options". Once I link the 4th to the same cell, it causes the first two buttons to either be selected, or deselected automagically. How do I include the 4th button so that only one is selected at a time? (this is in Excel '07, if it makes any difference)

    Thanks for the help!
    -Aikorei

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,441
    Assuming controls are on the worksheet.

    ActiveX Controls have a GroupName property which would need to be the same for all controls. There linked cells needs to be different.

    Forms controls have a LinkedCell property. And a frame is the only thing which would allow different linkedcell values.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    07-18-2007
    Location
    Seattle, WA, USA
    MS-Off Ver
    2016
    Posts
    42
    Unfortunately I know practically nothing about ActiveX (or VBA for that matter). The ironic thing is that the example in the help file about form grouping actually shows 4 radio option buttons there.

    This file is a customer survey for a construction company, so I plan on using literally dozens of sets of check boxes and radio buttons. The check boxes are easy to deal with, but grouping the radio buttons is posing a problem. I would *think* it would be easy to group as many option buttons as one would desire, but I'm not finding that to be the case.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,441
    what I meant was which control set are you using.
    In xl2007 on the Developer tab is the Controls group. The Insert button displays 2 sets of controls, Forms Controls and ActiveX controls.

    If you are doing this using userforms then a frame should keep the radio buttons behaving correctly.

  5. #5
    Registered User
    Join Date
    07-18-2007
    Location
    Seattle, WA, USA
    MS-Off Ver
    2016
    Posts
    42
    Ah, my apologies. I'm using the forms group. I think I found the problem. I tried to group the cells *after* I had inserted the radio buttons. When I create the group then insert the radio buttons within the group box, it seems to work fine. The pathetic thing is that it took me about 2 hours to figure that out.

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,441
    The grouping will happen as soon as you position a group box or a set of radio controls.

    When the group box is in position set the linked cell propert of 1 of the radio controls and all the others will automatically update.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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