+ Reply to Thread
Results 1 to 5 of 5

Checking all checkboxes on a worksheet

  1. #1
    Registered User
    Join Date
    06-06-2006
    MS-Off Ver
    2010, 365
    Posts
    39

    Question Checking all checkboxes on a worksheet

    Hi,

    Have created a small form with 5 checkboxes and a button on a worksheet. Want to check all checkboxes on the worksheet when the button is pressed.

    However, I am getting "Run-time error '438': Object doesn't support this property or method". Enclosing the code for your reference.

    Please Login or Register  to view this content.
    Any help is highly appreciated.
    Last edited by Leith Ross; 08-12-2014 at 01:22 PM. Reason: Added Code Tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Checking all checkboxes on a worksheet

    Hello shivboy,

    Please update your user profile to include which version or versions of Office your using.

    Which type of Check Boxes are you using: Forms or ActiveX?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    06-06-2006
    MS-Off Ver
    2010, 365
    Posts
    39

    Re: Checking all checkboxes on a worksheet

    Hi Leith,

    I am using Office 2010. I have used ActiveX controls on the sheet.


    Quote Originally Posted by Leith Ross View Post
    Hello shivboy,

    Please update your user profile to include which version or versions of Office your using.

    Which type of Check Boxes are you using: Forms or ActiveX?

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Checking all checkboxes on a worksheet

    Hello shivboy,

    Thanks for updating your profile. It makes it easier to answer questions knowing which Office versions you are using.

    This macro will check all the ActiveX CheckBoxes on the ActiveSheet.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-06-2006
    MS-Off Ver
    2010, 365
    Posts
    39

    Re: Checking all checkboxes on a worksheet

    Thanks, Leith. This is very useful.

    Just one more query. If I wanted to check if any 2 of those 5 checkboxes have been checked, is it possible to do that using the same logic?

+ 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. Clear fields & Checkboxes in a worksheet
    By mcphatty in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-26-2013, 12:53 PM
  2. [SOLVED] Worksheet Checkboxes if row is not blank
    By escobf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2013, 09:46 AM
  3. [SOLVED] Referencing Checkboxes on worksheet by name
    By vpaulsen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-29-2012, 09:14 AM
  4. [SOLVED] Check all checkboxes by checking one?
    By Jen L in forum Excel General
    Replies: 2
    Last Post: 04-26-2012, 08:36 AM
  5. Looping Checkboxes on Worksheet
    By Robbyn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-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