+ Reply to Thread
Results 1 to 6 of 6

ActiveX control checkbox to (un-)check all checkboxes

  1. #1
    Registered User
    Join Date
    08-21-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    13

    ActiveX control checkbox to (un-)check all checkboxes

    Hello,

    I'm using MS Excel 2003 and I have a sheet with altogether 6 ActiveX checkboxes. I want to have a 7th that (un-)checks them all. I can do that for form controls in VBA but not for ActiveX. Here's my code for the form controls:

    Please Login or Register  to view this content.
    Unfortunately, I have to stick with ActiveX controls because I need them to trigger a worksheet change event.
    Thanks.
    Stefan

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: ActiveX control checkbox to (un-)check all checkboxes

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    08-21-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: ActiveX control checkbox to (un-)check all checkboxes

    Thanks, Andy. Works great.

  4. #4
    Registered User
    Join Date
    08-21-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: ActiveX control checkbox to (un-)check all checkboxes

    Is it actually possible to have the 7th checkbox unchecked as soon as one of the others is unchecked.

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: ActiveX control checkbox to (un-)check all checkboxes

    Yes. You need to check the state of the checkbox being altered and if unset you can also unset CB7.

    Standard code module
    Please Login or Register  to view this content.
    Worksheet object
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-21-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: ActiveX control checkbox to (un-)check all checkboxes

    Once again, 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