+ Reply to Thread
Results 1 to 4 of 4

how do I select ALL the checkboxes in the Subtotal "Add subtotal to:" dialog box

Hybrid View

  1. #1
    Registered User
    Join Date
    09-14-2012
    Location
    Connecticut, USA
    MS-Off Ver
    Excel Mac 2011 v 14.2.3
    Posts
    1

    how do I select ALL the checkboxes in the Subtotal "Add subtotal to:" dialog box

    I have a spreadsheet with approximately 50 columns that I want subtotals for. Each time I re-open the spreadsheet and want to use the Subtotal feature, I need to select the check boxes, one by one, of all the columns I want subtotaled. Is there a way I can either:
    1. easily check all the check boxes (I tried using the shift and control keys, etc. but this did not work)?; or
    2. have the selected check boxes stay checked after closing and re-opening?; or
    3. some other solution?

    Thank you in advance!!!

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: how do I select ALL the checkboxes in the Subtotal "Add subtotal to:" dialog box

    Hi iJohn,

    Sub CheckAll(): Dim O As OLEObject, S
    For Each O In ActiveSheet.OLEObjects
    S = O.Name
    If S Like "CheckBox#" Then
    ActiveSheet.OLEObjects(S).Object.Value = True
    End If: Next: End Sub
    Last edited by xladept; 09-14-2012 at 08:48 PM.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    09-27-2024
    Location
    Naples, Italy
    MS-Off Ver
    11
    Posts
    1

    Re: how do I select ALL the checkboxes in the Subtotal "Add subtotal to:" dialog box

    Hello. I have the same question. But I only know the very basics in Excel. Can you describe step by step of how to add this script and begin to use it on Excel please? Thanks a lot!

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,053

    Re: how do I select ALL the checkboxes in the Subtotal "Add subtotal to:" dialog box

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #1 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

+ 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