+ Reply to Thread
Results 1 to 20 of 20

Help with checkboxes

  1. #1
    Registered User
    Join Date
    05-22-2014
    Posts
    63

    Help with checkboxes

    I have attached an excel file that I would like some help on. Im very new to VBA so any help that I can get with this is greatly appreciated. What I need is that the first three check boxes, when they become checked, add the time to the cell to the right of them. I currently have that but it is hard coded to one cell. When the 4th checkbox becomes checked I need it to add the time to the cell to the right, Hide the current row that it is in, and create a new row beneath it with the same check boxes. Is this to much? Thanks in advanced!
    Attached Files Attached Files
    Last edited by hhpack3; 06-09-2014 at 08:00 PM.

  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: Help with checkboxes

    Hi hhpack3,

    Here's a system to try - copy paste the entire code to your Make up part list sheet:

    Please Login or Register  to view this content.
    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
    05-22-2014
    Posts
    63

    Re: Help with checkboxes

    That is Awesome and it works Perfectly! Thank You!

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

    Re: Help with checkboxes

    You're welcome and thanks for the rep!

  5. #5
    Registered User
    Join Date
    05-22-2014
    Posts
    63

    Re: Help with checkboxes

    My needs have changed a little bit, do you think you could help one more time?

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

    Re: Help with checkboxes

    Yes, I can help again - later

  7. #7
    Registered User
    Join Date
    05-22-2014
    Posts
    63

    Re: Help with checkboxes

    So it gets a little more complicated. I need checkbox one to create a new row that has the check boxes in it, and check box four to close the row. Does that make sense?

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

    Re: Help with checkboxes

    By "close the row" do you mean hide and move check the boxes as it does now?

    It seems that you want box#1 to do as box#4 does now.

    I think I need more clarification.

  9. #9
    Registered User
    Join Date
    05-22-2014
    Posts
    63

    Re: Help with checkboxes

    By close I do mean hide, and essentially I want CB1 to create a new row with the check boxes in the same place, but have the CB's in the current row stay also. Im not even sure that is possible.

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

    Re: Help with checkboxes

    We'd have to create another set of checkboxes- naming them would become an issue!

  11. #11
    Registered User
    Join Date
    05-22-2014
    Posts
    63

    Re: Help with checkboxes

    Could they keep the same name? That in my head seems like it would work. So in the row underneath checkbox 1 would be checkbox 1 again and so on.

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

    Re: Help with checkboxes

    That's impossible

  13. #13
    Registered User
    Join Date
    05-22-2014
    Posts
    63

    Re: Help with checkboxes

    Okay ive got another idea then, how about when you check the 1st check box it puts the time to the right, and creates a new row. 2 and 3 stay the same, and 4 hides the current row.
    And all the times go to the next available row in the column instead of just the one directly to the right. Does this sound like itll work?

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

    Re: Help with checkboxes

    When do we move the checkboxes? Or, do you want to just leave them on top??

  15. #15
    Registered User
    Join Date
    05-22-2014
    Posts
    63

    Re: Help with checkboxes

    After the 4th box is checked please.

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

    Re: Help with checkboxes

    Try this - let me know of issuesCBMover2.xlsm

  17. #17
    Registered User
    Join Date
    05-22-2014
    Posts
    63

    Re: Help with checkboxes

    Its almost perfect! I hate to be nit picky but is there code that can make the check boxes can uncheck them selves? I should have specified that, other than that it works awesome!

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

    Re: Help with checkboxes

    Well

    Please Login or Register  to view this content.
    replace CB.Name with "CheckBox1" etc

  19. #19
    Registered User
    Join Date
    05-22-2014
    Posts
    63

    Re: Help with checkboxes

    Thank you very much. I could have never done that! I think its perfect now!

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

    Re: Help with checkboxes

    You're welcome!

+ 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. [SOLVED] Checkboxes
    By deano3141 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2014, 08:30 AM
  2. Replies: 4
    Last Post: 04-28-2013, 12:47 AM
  3. Print Sheets based on checkboxes in UserForm, Checkboxes also control another macro
    By krackaberr in forum Excel Programming / VBA / Macros
    Replies: 34
    Last Post: 03-05-2013, 11:12 AM
  4. [SOLVED] Checkboxes
    By Oeysbrei in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-12-2012, 07:33 AM
  5. [SOLVED] CheckBoxes
    By Laur in forum Excel General
    Replies: 2
    Last Post: 03-22-2005, 04:06 PM

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