+ Reply to Thread
Results 1 to 2 of 2

limit the number of checked checkboxes within 200 checkbox ( checklist purpose)

  1. #1
    Registered User
    Join Date
    10-03-2019
    Location
    Algeria
    MS-Off Ver
    2010
    Posts
    7

    Wink limit the number of checked checkboxes within 200 checkbox ( checklist purpose)

    Hi everybody ,
    I tryed to adjust my post as possible to comply withe forum rules, so thanks to notify me about any new problem in my post.
    I've attached a sample workbook contain two slides for example to work on,
    I have made a checklist that alow you to chouse only 10 elements from 200 element using the control form checkboxes

    I tryed to do that based on two codes (two Attemptes):

    The first code principle is to disable the unchecked checkboxes when the number of checked checkboxes reach 10 and enable them when the number reduced to less than 10 so you can't check more than 10 checkboxes from a list of 200 checkboxe, but unfortunately this code can't work for me and i don't understand why !!! (see slide number one"first instance")

    The seconde code principle is to do not check more than 10 checkboxes also (this code worked but too slow):
    When the number of linked cells containing TRUE reach 10 cells, unprotect the worksheet, protect the remaining linked cells that contain FALSE then protect the work sheet
    When the number of linked cells that contain TRUE is reduced to less than 10 cells, unprotect the worksheet, unprotect the remaining linked cells that contain FALSE then protect the work sheet, but the problem of htis second code is making the original file responce too slow because the original file has onother functions to work with in the same time, some times takes 5 to 10 minutes and other times no responce (see slide number two"seconde instance")

    See the attached file
    Could any one expert help me please
    Attached Files Attached Files
    Last edited by sofianeexcel; 11-04-2020 at 02:57 AM.

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: limit the number of checked checkboxes within 200 checkbox ( checklist purpose)

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

+ 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. Checklist using checkboxes for email
    By antros48 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-27-2020, 02:23 PM
  2. [SOLVED] Limit number of checkboxes on Excel Worksheet
    By bailey.mr25 in forum Excel General
    Replies: 5
    Last Post: 02-07-2018, 12:10 PM
  3. [SOLVED] Checkboxes - How to check/uncheck other checkboxes based on another checkbox
    By brooklyn_87 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-27-2017, 01:20 PM
  4. Connecting Excel checkboxes for a checklist
    By RossCR in forum Excel General
    Replies: 1
    Last Post: 12-01-2016, 11:50 AM
  5. [SOLVED] When checkbox is checked it does not copy to new sheet. Only if not checked using false
    By thelisa in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-28-2013, 07:59 AM
  6. [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
  7. Checklist averaging using checkboxes?
    By ksudhan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2008, 10:37 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