+ Reply to Thread
Results 1 to 4 of 4

Clicking Checkbox unclicks the other Checkbox

  1. #1
    Registered User
    Join Date
    07-21-2013
    Location
    England
    MS-Off Ver
    Excel 2013
    Posts
    4

    Red face Clicking Checkbox unclicks the other Checkbox

    Hey,

    I really need you guy's help for a project at work:

    I've googled alot and all I've found is radio Buttons do the job straight away if you group them but I've made a mistake in making my document with Tick-Boxes and spending hours programming these tickboxes to do exactly what I need! I'm not really able to change the way my excel sheet works with ease anymore, it'd take me a long time which doesn't complement my deadline!

    So I've got a question and then two check-boxes. One which says "pass" and one which says "fail". At the moment, everything works perfectly apart from I have the option of checking them both at the same time which is not right.

    Can anyone tell me a macro/VB script that I can set up to trigger when clicking a check-box. I want it to check the other box and if the other box is checked, remove it.

    Also, I want to make a button that clears all the answers that are checked. A reset button. Can anyone please explain how I can do that? I think it's going to be a VB script and I don't know anything at all about how to use VB!!!

    Thanks all!

    Daryl

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Clicking Checkbox unclicks the other Checkbox

    Are the checkboxes on a userform or a sheet?
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Registered User
    Join Date
    07-21-2013
    Location
    England
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Clicking Checkbox unclicks the other Checkbox

    Hi,

    I'm using a sheet.

    Thanks

  4. #4
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Clicking Checkbox unclicks the other Checkbox

    If you don't have a macro assigned to the checkbox, try assigning this to one:

    Please Login or Register  to view this content.
    and this to the other:

    Please Login or Register  to view this content.
    This is assuming the names of your checkboxes are Check1 and check2. Change if necessary.

+ 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. [SOLVED] Need Frozen Time Stamps from clicking checkbox
    By peachster in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-08-2013, 05:48 PM
  2. [SOLVED] How do I change a checkbox to unchecked without running the code within the checkbox
    By jsunnb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-27-2012, 09:28 PM
  3. Excel 2007 : change color bij clicking checkbox ??
    By wartender in forum Excel General
    Replies: 1
    Last Post: 12-13-2011, 06:44 AM
  4. Checkbox choices that run code on clicking command button
    By Sharky in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-08-2007, 05:30 PM
  5. [SOLVED] Clicking checkbox Changes the Label Font
    By kcc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-11-2005, 03:06 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