+ Reply to Thread
Results 1 to 6 of 6

Thread: Radio Buttons Not Grouping

  1. #1
    Registered User
    Join Date
    01-10-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    2

    Question Radio Buttons Not Grouping

    Hi,

    I've been struggling with this issue for a few days, and I'm hoping the experts here can solve it for me.

    I'm building a spreadsheet that contains 20 - 30 questions about the condition of a home.

    For example, "Paint" would be classified as one of the following: "OK", "Needs Touch Up", or "New Paint Job".
    Same thing for "Carpet", "Appliances", and so on.

    I'm using radio button forms for each option, and using the control group to bunch them separately.

    The first three or four work as I would expect.

    Below that, the groupings don't seem to serve their purpose. In any of the next 20 questions, the option buttons function as if there is no grouping whatsoever. When in reality, each group is separated by a box. But I can only select one option of all the groups. It should be one PER group.

    Does that make sense? Any thoughts? Any other information you'd need to solve this problem?


    Thanks very much!!

  2. #2
    Valued Forum Contributor tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    USA
    MS-Off Ver
    Excel 2003 - 2007
    Posts
    2,352

    Re: Radio Buttons Not Grouping

    bobmaucher,

    Welcome to the forum!

    Does this require radio buttons?
    If you're using the sheet directly, i'd suggest using a validation drop down list for each question instead of radio buttons.
    If you're using a userform, you can more easily group radio buttons/questions with the Frame control. Each frame would be a question, and then you'd put the desired radio buttons in the frame. (Though I'd still recommend using the sheet directly with data validation drop-down lists)
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,791

    Re: Radio Buttons Not Grouping

    yes a sample workbook showing what's not working
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    01-10-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Radio Buttons Not Grouping

    Thanks, tigeravatar!

    Does it require radio buttons? No. But someone will be using this form repeatedly (on an iPad), and I'm looking to minimize the number of times they touch it. It's just in the interest of efficiency. Radio button would require one "click", and validation drop down list would require two. Such a small difference, I know - but I'm just looking to make it as easy to use and efficient as possible. If you think the radio buttons really mess it up, then I'd consider getting rid of them.

    I am not using a userform, although I will consider it. Thanks for that suggestion. Best case, I can fix these option buttons. But if not, that's likely the way I'll go.

    Attached is a sample of what I'm trying to do. There will be formulas that calculate cost, based on which options are selected.
    Property Checklist Template.xlsm


    Thanks again!

  5. #5
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,791

    Re: Radio Buttons Not Grouping

    the group boxes arent around the buttons you think they are, make all the rows bigger say about 2 inches nothing lines up
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Valued Forum Contributor tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    USA
    MS-Off Ver
    Excel 2003 - 2007
    Posts
    2,352

    Re: Radio Buttons Not Grouping

    bobmaucher,

    Quote Originally Posted by bobmaucher View Post
    Does it require radio buttons? No. But someone will be using this form repeatedly (on an iPad), and I'm looking to minimize the number of times they touch it. It's just in the interest of efficiency. Radio button would require one "click", and validation drop down list would require two
    Since you know they'll be "clicking" instead of using a keyboard, and you only want one click per answer, you can use a selection_change event instead of radio buttons. Attached is a modified version of your workbook that does just that. It will put an X in the selected item. Here is the code it uses:
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
        
        Dim strResult As String
        
        If Target.Cells.Count > 1 Or Intersect(Target, Me.Range("B6:D20,B24:D54")) Is Nothing Then Exit Sub
        
        Application.EnableEvents = False
        If Target.Value = "X" Then strResult = vbNullString Else strResult = "X"
        Intersect(Target.EntireRow, Columns("B:D")).ClearContents
        Target.Value = strResult
        Application.EnableEvents = True
        
    End Sub
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0