+ Reply to Thread
Results 1 to 3 of 3

checkbox / radiobutton

Hybrid View

  1. #1
    Registered User
    Join Date
    05-31-2007
    Posts
    16

    Should I use a checkbox or radio button?

    Hello,

    I'm making a worksheet where the user has the options to select "yes" or "no". I used active x radio buttons because I feel they are more flexible. The problem I'm running in to is, what happens if there is an "unknown"? I can't find a way to "deselect" a radio button, is it possible?

    Next, I tried using 2 checkboxes using the following code:

    Checkbox 1:
        
    If CheckBox2.Value = True Then
    CheckBox1.Value = False
    End If
    Checkbox2:
    If CheckBox1.Value = True Then
    CheckBox2.Value = False
    End If
    The problem with this is, you have to deselect one checkbox before you can select the other. It works, but it’s a little more cumbersome then I was hoping. Is there a better solution?

    Thanks for your time,
    Last edited by sous2817; 02-22-2008 at 03:20 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello sous2817,

    The Control Toolbox controls do offer a greater range of formatting and properties than the Forms Toolbar controls, but at the expense of writing more code. Use the Forms Radio Buttons and place 2 of them on a Frame control for each Yes No question. This will relate them internally as a Group,and keep your questions separated.

    Sincerely,
    Leith Ross

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Sous2817,

    There are a lot of responces to your cross post at
    http://www.mrexcel.com/forum/showthread.php?t=305110


    The link below this explains why posting a cross-link when cross-posting is required by the forum rules.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ 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