+ Reply to Thread
Results 1 to 8 of 8

Help formatting check box to uncheck automatically when checking another box on same line

  1. #1
    Registered User
    Join Date
    04-21-2014
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Help formatting check box to uncheck automatically when checking another box on same line

    I have a worksheet with a series of questions with 3 check boxes (Y, N. or N/A). Workbook users are selecting more than one checkbox per line. I want to modify so that only one may be selected per line. So if they check Y, and then N, the Y is automatically unchecked.

  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: Help formatting check box to uncheck automatically when checking another box on same l

    You should use option buttons instead of checkboxes. This behavior is built-in with option buttons in the same group. Otherwise you have to write a bunch of code to make checkboxes act like that.

    I can be more specific if you attach your file.

    To post a file:
    1. Under the text box where you type your reply click the Go Advanced button.
    2. In the next screen look above the reply box and click the "paper clip" icon. You will get a pop-up screen.
    3. In the pop-up, click Add then Select to select a file from your local drive
    4. Click the Upload button to upload the file
    5. Click Done to attach it.

    It will be displayed as an attachment underneath your post text. Alternatively as the last step you can click the Insert Inline button and a hyperlink to the file will be inserted directly into your post text in the spot where your cursor is set at the moment you click the button.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Help formatting check box to uncheck automatically when checking another box on same l

    Hi BBane,

    You probably want to trade in your Check Boxes for Radio Buttons. Each Y, N, N/A set should have the same GroupName (Group name of your choice) as selected from the Properties Window. You can access the Properties Window by Right Clicking on a control. For what you want to do 'Control Toolbox' (Active X) Radio buttons may be a little easier to work with than 'Forms' Radio buttons.

    Lewis

  4. #4
    Registered User
    Join Date
    04-21-2014
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Help formatting check box to uncheck automatically when checking another box on same l

    Here is the file I am working with that has the check boxes. Based on replies, it appears that the check box option was not the best.
    Attached Files Attached Files

  5. #5
    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: Help formatting check box to uncheck automatically when checking another box on same l

    See if this helps. I have code to create the buttons so minor changes can be made fairly easily.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-21-2014
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Help formatting check box to uncheck automatically when checking another box on same l

    This is great. Can I attach multiple copies into a workbook and hold the code to maintain functionality across all worksheets?

  7. #7
    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: Help formatting check box to uncheck automatically when checking another box on same l

    Not entirely sure what you mean. You can certainly copy that existing sheet. I'm not sure what you mean by "hold the code". I don't know what "functionality across all worksheets" means, since there is no functionality that references or is referenced by other worksheets. Maybe I could answer better if you describe the scenario you have in mind--how will it be used?

  8. #8
    Registered User
    Join Date
    04-21-2014
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Help formatting check box to uncheck automatically when checking another box on same l

    6StringJazzer, I found my mistake in attempting to copy the existing sheet into a multi-sheet workbook. I certainly appreciate all your help with this document. I am sorry you had to deal with such an excel-challenged individual. Thanks.

+ 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. VBA help with check and uncheck
    By akajj13 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-23-2013, 01:02 AM
  2. Macro to automatically check or uncheck checkboxes based on a linked cell
    By lmshow in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-19-2013, 03:31 AM
  3. Uncheck a Check Box using VBA
    By ashmott in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-01-2011, 10:29 PM
  4. Uncheck check boxes
    By Brisbane Rob in forum Excel General
    Replies: 3
    Last Post: 02-15-2006, 03:08 PM
  5. [SOLVED] How do I check/uncheck ten or odd Checkboxes by click on one check
    By Ken Vo in forum Excel General
    Replies: 5
    Last Post: 01-04-2006, 07:15 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