Closed Thread
Results 1 to 3 of 3

Auto checkbox filling

  1. #1
    Registered User
    Join Date
    01-13-2016
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    46

    Auto checkbox filling

    Hi all,

    I am trying to create a macro that will check all the check boxes in a group based on a master checkbox. What I find it difficult is to only check the check boxes in the group.

    For example when the mastercheckbox 1 is check then all the check boxes in that specific range in this case(D8:D10) should be checked. Same logic for mastercheckbox 2.

    I have attached the file with the example.

    Thanks,
    R
    Last edited by red1234; 01-07-2020 at 03:30 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    06-22-2018
    Location
    Blackpool, England
    MS-Off Ver
    2019
    Posts
    408

    Re: Auto checkbox filling

    Hi there. Unfortunately, I can't see the code that is meant to run when you check those "masters". It's linking to a SS on sharepoint...

    Also, you've got multiple overlapping checkboxes - it's going to confuse things massively if you've not done that on purpose. There are 14 checkboxes on your worksheet, but only 8 visible to the user.

    Anyway...
    Your checkboxes are MS form controls. While some would say steer clear from ActiveX controls, I've never had any problems with them and I find them easier to work with.

    If you want to stick with form controls, you'll have to identify which checkboxes you really want to amend and run a macro that changes them. This code is in a standard module:
    Please Login or Register  to view this content.
    If you decide to go with ActiveX controls, something like this (this is in the "Sheet1" code):
    Please Login or Register  to view this content.
    I'm sure others will be able to elaborate on the pros and cons of either.

    HTH
    Tim
    Attached Files Attached Files
    Never stop learning!
    <--- please consider *-ing !

  3. #3
    Registered User
    Join Date
    01-13-2016
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    46

    Re: Auto checkbox filling

    Thanks a lot!

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Filling values in text box when Checkbox is unchecked
    By subbby in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-01-2016, 08:32 AM
  2. auto filling like Mon to Sun, and like Jan to Dec
    By gopalakrishnarao1 in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 04-29-2010, 03:59 PM
  3. Auto Filling
    By dmkanz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-20-2007, 06:29 PM
  4. Filling in a cell based on Checkbox true/false
    By Rivalwon in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-10-2007, 07:07 PM
  5. auto filling help
    By brit rider in forum Excel General
    Replies: 3
    Last Post: 02-20-2007, 10:14 AM
  6. Auto filling a row
    By phil2006 in forum Excel General
    Replies: 2
    Last Post: 07-31-2006, 07:38 AM
  7. Auto Protecting cells & auto filling date
    By ccarmock in forum Excel General
    Replies: 7
    Last Post: 09-30-2005, 05:05 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