+ Reply to Thread
Results 1 to 8 of 8

One VBA/Macro to check all boxes from other worksheets?

  1. #1
    Registered User
    Join Date
    08-08-2013
    Location
    Cambridge
    MS-Off Ver
    Win7 Office 2010
    Posts
    34

    One VBA/Macro to check all boxes from other worksheets?

    Hi,

    I am not very Excel savvy but have managed to get my way around most functions and I'm learning very quickly!

    I need help with creating a VBA/Marco that can call functions from other worksheets, if that is at all possible?

    I currently have a workbook which contain several checkboxes. On each worksheet I have already made a 'Select All' and 'Unselect All' button using VBA that checks and unchecks all check boxes on the worksheet in question.

    The VBA I used for checking all boxes are:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    And the VBA I used to deselect all check boxes are:

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    I am now working on creating a summary page and was wondering if I could create a VBA function that would allow me to check and uncheck boxes from ALL worksheets, or at least activate the check/uncheck boxes for each worksheet?

    Hope this makes some sense

    Thanks,

    Chris

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: One VBA/Macro to check all boxes from other worksheets?

    This is kind of an easy way out, but try:
    Please Login or Register  to view this content.
    e/ I should probably ask in which module you have all these saved?
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Registered User
    Join Date
    08-08-2013
    Location
    Cambridge
    MS-Off Ver
    Win7 Office 2010
    Posts
    34

    Re: One VBA/Macro to check all boxes from other worksheets?

    Thank you, I tried running that but it didn't work. I have saved all my VBA code so far in 'Module 2 (Code)'

  4. #4
    Registered User
    Join Date
    08-08-2013
    Location
    Cambridge
    MS-Off Ver
    Win7 Office 2010
    Posts
    34

    Re: One VBA/Macro to check all boxes from other worksheets?

    Apologies, the module name was 'VBAProject' and not 'Module 2 (Code)'. I've tried running the code below but this error came up: "For Each can only iterate over a collection object or an array".

    Please Login or Register  to view this content.

  5. #5
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: One VBA/Macro to check all boxes from other worksheets?

    Can you attach your workbook as an example? That may help us work it out.

  6. #6
    Registered User
    Join Date
    08-08-2013
    Location
    Cambridge
    MS-Off Ver
    Win7 Office 2010
    Posts
    34

    Re: One VBA/Macro to check all boxes from other worksheets?

    Here is an attachment of my workbook. What I want to do is to create one macro that check all boxes for all products (potatoes) so that I do not have to use the 'Select All' macro on each product worksheet. Is this possible?
    Last edited by tuna666; 08-22-2013 at 11:17 AM.

  7. #7
    Registered User
    Join Date
    08-08-2013
    Location
    Cambridge
    MS-Off Ver
    Win7 Office 2010
    Posts
    34

    Re: One VBA/Macro to check all boxes from other worksheets?

    Is this thread dead now?

  8. #8
    Registered User
    Join Date
    08-08-2013
    Location
    Cambridge
    MS-Off Ver
    Win7 Office 2010
    Posts
    34

    Re: One VBA/Macro to check all boxes from other worksheets?

    Any help would really be appreciated

+ 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. Using check boxes to hide and unhide worksheets
    By J_barber in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-12-2017, 04:27 AM
  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. Hide or Unhide worksheets in a workbook using check boxes
    By Kempfat in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-14-2012, 05:35 AM
  4. Using check boxes on protected worksheets
    By PennyPitstop in forum Excel General
    Replies: 2
    Last Post: 09-13-2007, 09:46 AM
  5. [SOLVED] How do I use check boxes to determine which worksheets to print?
    By Slugger in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-21-2005, 11:06 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