+ Reply to Thread
Results 1 to 3 of 3

Refer to forms control checkbox in VBA when it is part of a group

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

    Refer to forms control checkbox in VBA when it is part of a group

    Hello,

    This code to uncheck a forms control checkbox works when the checkbox exists by itself on the worksheet.

    Please Login or Register  to view this content.
    But how do you refer to the checkbox when the checkbox is grouped with other checkboxes and textboxes? These do not work:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    thanks

  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,258

    Re: Refer to forms control checkbox in VBA when it is part of a group

    Hello tmallin,

    When Shapes are grouped together, a new invisible Shape is created that contains the other Shapes. These new Shapes

    are named Group 1, Group 2, etc.

    Once you know the name of the Group, you can reference a Shape in the Group like this:

    Please Login or Register  to view this content.

    This macro will list the names of Shapes in all Groups on the Active Sheet.

    Please Login or Register  to view this content.
    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
    05-09-2013
    Location
    Michigan, USA
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Refer to forms control checkbox in VBA when it is part of a group

    That's the syntax I was looking for. Thanks, Leith

+ 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. Checkbox using Format Control and copying control values
    By bigapple14 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2014, 09:28 AM
  2. [SOLVED] Forms Control checkbox and code to unlock a cell
    By JimDandy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-21-2013, 04:46 PM
  3. [SOLVED] How to refer checkbox with user defined names
    By pankajy18 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2013, 07:05 AM
  4. Replies: 2
    Last Post: 03-19-2013, 08:01 AM
  5. Control Forms or ActiveX Control
    By ASPERO in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2011, 04:57 PM
  6. Refer checkbox by name in a loop
    By Xtender in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-24-2006, 07:50 AM
  7. [SOLVED] Group Action of CheckBox Control in Excel 2000
    By Dan Fisher in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-02-2005, 06:05 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