+ Reply to Thread
Results 1 to 3 of 3

Looping through Form Controls checkboxes

  1. #1
    Registered User
    Join Date
    05-09-2013
    Location
    Michigan, USA
    MS-Off Ver
    Excel 2010
    Posts
    43

    Looping through Form Controls checkboxes

    Members,

    I pieced this code together from various web searches. It loops through all checkboxes whose name starts with a particular string and runs the subroutine associated with the check box if the check box is checked.

    Please Login or Register  to view this content.
    It works, but it loops through all Shapes on the worksheet. This includes command buttons, text boxes, lines, groups, spin buttons, pictures, etc.

    Is there a more elegant way to just loop through the checkboxes?

    thanks in advance

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Looping through Form Controls checkboxes

    maybe so
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-09-2013
    Location
    Michigan, USA
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Looping through Form Controls checkboxes

    nilem,

    That works. "CheckBoxes" does not show up in the list as one of the choices after typing the "." next to "wks" so I didn't know it was valid.

    Case solved. thanks

+ 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. Form Controls / Active X controls to record and log information in a seperate sheet
    By marcbarnett in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-09-2014, 05:00 AM
  2. Replies: 1
    Last Post: 05-01-2014, 05:15 PM
  3. Hiding / Revealing Form Controls 'CheckBoxes' based on Cell Values
    By Dubs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-20-2013, 02:53 PM
  4. [SOLVED] Looping through CheckBox Controls on Excel Form
    By Cooper2251 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-19-2013, 04:00 PM
  5. Checkboxes (form controls) to gray-out when cells assumes certain value
    By Stefan1983 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-10-2012, 04:31 AM
  6. Looping through controls
    By Libby in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-27-2005, 12:06 PM
  7. Looping through controls on form
    By Robbyn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-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