+ Reply to Thread
Results 1 to 5 of 5

Show next checkbox when I click previous one

  1. #1
    Registered User
    Join Date
    09-17-2009
    Location
    Russia, St. Petersburgh
    MS-Off Ver
    Excel 2003/2007
    Posts
    62

    Show next checkbox when I click previous one

    I have multiple check box (activex control).
    When click to first check box second should appear and linked to corresponding cell in column K.
    I did that manually
    Is here the way to do tah using more complex code

    ==============================
    My code
    ==============================
    Please Login or Register  to view this content.
    and so on. I'm very tired and want to go home pls help..

    Mery chrisymas
    Last edited by bambino_32; 12-28-2009 at 09:51 AM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Show next checkbox when I click previous one

    Is here the way to do tah using more complex code
    Code should never be more complex than what is required to efficiently achieve the result.

    Although I have no context for understanding your project, I see nothing wrong your approach in making checkboxes progressively appear. However, you might want to include code to hide successive check boxes if the user unchecks the previous checkbox.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    09-17-2009
    Location
    Russia, St. Petersburgh
    MS-Off Ver
    Excel 2003/2007
    Posts
    62

    Re: Show next checkbox when I click previous one

    Is that true way to do that. For exxample I have 100 checkboxes, and I have to write this code for each check box separately?

    When I told comlex code , I meant shrter one

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Show next checkbox when I click previous one

    OK, now I see what you intended.

    I would NOT use a checkbox control at all. It is much easier and there is less code if you opt for using a Marlett check box. It also permits a cleaner looking worksheet.

    See this link on using a Marlett Checkbox

  5. #5
    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: Show next checkbox when I click previous one

    Hello Bambino_32,

    There are 2 macros here. The first macro will be called by the check boxes to perform the actions you require. The second macro will automatically create the code for each check box. The aonly requirement is the check box names must start with "CheckBox1" and progress sequentially up to "CheckBox100". You can change the limit of 100 to some other number if want. Copy this code into a separate VB module. Make sure the worksheet that has the check boxes is 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!)

+ 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