+ Reply to Thread
Results 1 to 6 of 6

Checkbox won't uncheck

  1. #1
    Registered User
    Join Date
    09-26-2011
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    3

    Checkbox won't uncheck

    Hi guys,

    I'm having a problem. I have a worksheet with a lot of checkboxes on them. I want to make a button which unchecks all checkboxes at once. For most of the checkboxes it works to use

    Please Login or Register  to view this content.
    however, I have a few activex checkboxes that have some conditions in a _click sub. like:

    Please Login or Register  to view this content.

    if I trie to uncheck the checkbox by using .value=false it does not work. What is going wrong? Does anyone have an idea how to solve this issue? FYI can't use non-active x checkbox in this case.

    thanks in advance!

  2. #2
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Checkbox won't uncheck

    Hi,

    you can try this :
    Please Login or Register  to view this content.
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  3. #3
    Registered User
    Join Date
    09-26-2011
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Checkbox won't uncheck

    I get an object does not support that property or method error on
    Please Login or Register  to view this content.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Checkbox won't uncheck

    The problem is that the Click event of the checkbox will be triggered when you set it to False.

    What is this code mean to do anyway?
    Please Login or Register  to view this content.
    It's seems like you have some sort of toggling going on.
    If posting code please use code tags, see here.

  5. #5
    Registered User
    Join Date
    09-26-2011
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Checkbox won't uncheck

    It toggles 2 checkboxes that may not be checked at the same time. So when the first one is true than the second one cannot be clicked and vice versa. Any idea how I can solve this problem while keeping the toggling?

    - edit: solved the issue. dimmed an variable that = 1 if i do a reset. on the checkbox_click event i added an if statement to only execute the code if the variable=0

    Thanks for helping me understand where the issues lies!
    Last edited by eureka18; 12-05-2013 at 10:53 AM.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Checkbox won't uncheck

    Glad you got it solved, but I've got to ask - why no use 2 option buttons?

+ 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] Uncheck checkbox if condition is met
    By barqujo in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-08-2013, 12:11 PM
  2. [SOLVED] VBA code to uncheck checkbox 2 & 3 if checkbox 1 is checked
    By hydz1213 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-25-2013, 03:10 AM
  3. [SOLVED] CheckBox Uncheck
    By Anto_BT in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-24-2012, 10:15 AM
  4. How to have Checkbox A uncheck with checked Checkbox B
    By Texas Aggie 09 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2007, 09:29 AM
  5. check/uncheck a checkbox
    By leonidas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-06-2006, 06:25 AM

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