+ Reply to Thread
Results 1 to 4 of 4

Checking and Unchecking multiple check boxes at once

  1. #1
    Registered User
    Join Date
    03-13-2014
    Location
    Miami
    MS-Off Ver
    Excel 2010
    Posts
    42

    Checking and Unchecking multiple check boxes at once

    Hi Everyone,

    I'm trying to make a macro where if I check/uncheck a check box a group of checkboxes also be checked/unchecked.

    I have 10 check boxes that are labeled chkBoxQ_1_L_1 all the way to Q_1_L_10

    The way I'm thinking to write the code is like this:

    Private Sub chkBoxQ_1_L_1_Click()

    If chkBoxQ_1_L_1.Value = True Then

    'here would be a loop that cycles through chkboxQ_1_L_2 to chkboxQ_1_L_10 and checks them

    Else

    'here would be a loop that cycles through chkboxQ_1_L_2 to chkboxQ_1_L_10 and unchecks them

    End if

    End Sub

    Any ideas how to write the loop? help is appreciated thanks

  2. #2
    Registered User
    Join Date
    09-19-2014
    Location
    Philadelphia,PA
    MS-Off Ver
    2010
    Posts
    54

    Re: Checking and Unchecking multiple check boxes at once

    Hey, I used this website when I need to do this earlier this year. It explains it pretty well. Have a look.

    http://www.exceltrick.com/how_to/sel...ngle-checkbox/

  3. #3
    Forum Contributor
    Join Date
    04-04-2014
    Location
    Tetbury, England
    MS-Off Ver
    Excel 2010
    Posts
    254

    Re: Checking and Unchecking multiple check boxes at once

    If you only want to apply the code to your 10 boxes above, perhaps this will work:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-13-2014
    Location
    Miami
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Checking and Unchecking multiple check boxes at once

    Hi PD Bartlett,

    the controls method doesn't seem to be a member of the "me" group. do you have any other suggestions?

+ 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] Making cell a checkbox is linked to become active when checking or unchecking
    By dwf357 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-17-2013, 06:49 PM
  2. I need a code for presence check to check multiple text boxes and combo boxes
    By Lee_wwfc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2013, 01:53 PM
  3. Checking a check box that checks other boxes on other sheets
    By caliskier in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-25-2008, 10:55 AM
  4. Unchecking check boxes on exit
    By Brisbane Rob in forum Excel General
    Replies: 2
    Last Post: 02-14-2006, 03:33 PM
  5. [SOLVED] PivotTable - Unchecking and re-checking data fields
    By Jeff K in forum Excel General
    Replies: 1
    Last Post: 07-20-2005, 05:05 PM

Tags for this Thread

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