+ Reply to Thread
Results 1 to 5 of 5

Make all check boxes = true

  1. #1
    Registered User
    Join Date
    03-02-2012
    Location
    Kansas, USA
    MS-Off Ver
    Excel 2010
    Posts
    19

    Make all check boxes = true

    I want to be able to click a button and scan the sheet and see if there are any check boxes and make them true so I can then decide what to print from there. I would then click another button to print the documents associated with these check boxes. And finally click a third button to clear all the check boxes. I have some code to clear all the check boxes but seem to be having a hard time getting the code to select all the check boxes.
    The code I have is as follows:

    Please Login or Register  to view this content.
    Any help getting this code to make the check boxes = true would be greatly appreciated. Thanks
    Last edited by azland00123; 03-02-2012 at 05:22 PM. Reason: Rule for code posts

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Make all check boxes = true

    azland00123,

    Welcome to the forum! In the future, please wrap your code in code tags per the forum rules (link in my sig).
    As to your query, wouldn't you just change the False to True?
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    03-02-2012
    Location
    Kansas, USA
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Make all check boxes = true

    Thanks tigeravatar,
    I fixed the post as per the rules sorry about that.
    I thought that it would be that simple too, but it wont work and I dont know why. It selects the area in B2:B7 but it wont clear the content or make the check boxes True. There are no errors given when I run the code as True either.

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Make all check boxes = true

    Weird. I created a dummy workbook and put in some activeX checkboxes and the code checked them all just fine when I changed the false to true. Not sure where the disconnect is.

    Can you upload a sample file that is experiencing the problem?

  5. #5
    Registered User
    Join Date
    03-02-2012
    Location
    Kansas, USA
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Make all check boxes = true

    Ok Active X check boxes seems to be the key. Thanks so much for your help. This problem is solved and i will mark it as such.

+ 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