Closed Thread
Results 1 to 4 of 4

Macro for selected/unselected checkbox?

  1. #1
    Registered User
    Join Date
    12-08-2007
    Posts
    10

    Macro for selected/unselected checkbox?

    I've never used checkboxes before and I'm trying to get one to perform a macro when selected/unselected. When the box is selected I would like it to show certain rows, when it is unselected I would like it to hide those rows.

    I'm currently using a combo box to do this, but plan to make the function available in a checkbox. Here's a sample of the combo box code I'm using:

    Please Login or Register  to view this content.
    It basically says if "0" is selected in the combo box, then range A_Set1 & A_Set2 will be hidden, otherwise if something besides "0" is selected then the two ranges are shown. I want this same concept (via checked vs/ unchecked) implemented into a checkbox.

    Thanks for any help!
    Last edited by Leith Ross; 01-25-2008 at 01:30 PM.

  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
    Hello Orlic,

    Please re-read the forum rules about posting. You obviously know about HTML tags, please use them to wrap your code in the future. You can read the rules by clicking Here.

    As a member of the Forum, if you don't follow the rules there will be consequences. Your post may be locked or even deleted.

    Thanks,
    Leith Ross

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hello Orlic,

    Please read forum rules and message to cross posters then add the link to the other forum

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Registered User
    Join Date
    12-08-2007
    Posts
    10
    Great, two slap on the wrists and no answers...

Closed 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