+ Reply to Thread
Results 1 to 5 of 5

Radio Buttons Question

  1. #1
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Radio Buttons Question

    Hello, Gurus.

    In the attached TEST workbook I have several different sets of 5 radio buttons. I want to be able to make a selection in each set, but if I select a button in the first set it gets turned off when I make a selection in the 2nd set.

    Any help would be greatly appreciated.

    Thanks.
    Attached Files Attached Files
    Last edited by [email protected]; 01-25-2018 at 05:43 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Radio Buttons Question

    When you use Form controls in a worksheet, you must assign option buttons to Group boxes to determine which groups of option buttons act together.

    First you will have to select each set of option buttons you have created, right click, and Ungroup them.
    Then create a Group Box for each group.
    Move the option buttons into the corresponding Group box
    Move the group box back to where you want it on the page

    There is a thorough explanation of how this works on this page
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Radio Buttons Question

    What you have to do is create a group box (the "XYZ" rectangle icon on the forms control on the developer tab). Radio buttons inside the group box interact with each other, but not with other radio buttons in other group box. Right now all your radio buttons are in a big group called "the sheet."
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  4. #4
    Registered User
    Join Date
    06-10-2014
    Posts
    10

    Re: Radio Buttons Question

    Hi - The way that I would do this is with Group Boxes

    From the developer tab insert GroupBox and draw round the Option Buttons one by one creating several groups, one box for each question. This will limit the answer (selection) to only the Option Buttons within that box.

    You will notice however, that this leaves a small outline around the groupbox, use the code below to remove the boxes.

    Open VBA console (Alt+F11) then press Ctrl+ G to open the immediate options at the bottom, paste the below code in and press enter. Voila, the outline has gone.
    Please Login or Register  to view this content.
    Close the console

    If you wanted to see the boxes again, replace false with true and press enter.

    I have adjusted your file for you - attached.
    Attached Files Attached Files
    Last edited by Kinjo; 01-25-2018 at 06:16 PM.

  5. #5
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Re: Radio Buttons Question

    Got it, Guys. Thanks for the help!

    Have a good one.

+ 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. Radio Buttons only working on some computers, Buttons are being renamed
    By branas7180 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-12-2015, 12:03 PM
  2. How to insert and user of Buttons, Radio buttons, check boxes in excel sheet.
    By krishco in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-03-2013, 02:52 AM
  3. How to insert Buttons, radio buttons and check boxes in Excel
    By krishco in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-01-2013, 08:13 AM
  4. How can I insert multiple sets of option buttons (radio buttons) in Excel 2010?
    By mickwooduclan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-25-2013, 10:01 AM
  5. Evaluation with Radio buttons and Option buttons
    By soph0101 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 11-15-2010, 12:23 PM
  6. Radio Buttons Selecting Other Radio Buttons
    By Neonate928 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-13-2007, 11:19 PM
  7. Replies: 3
    Last Post: 12-17-2005, 01:40 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