+ Reply to Thread
Results 1 to 18 of 18

How to choose a group of checkboxes?

  1. #1
    Registered User
    Join Date
    03-16-2013
    Location
    Odessa, Texas
    MS-Off Ver
    Excel 2007
    Posts
    10

    How to choose a group of checkboxes?

    I am currently working on a spreadsheet that consist of about 100 checkboxes. What i am needing is to be able to select the checkbox and it move to a different sheet within the same workbook.
    I am currently using this code to move one checkbox.

    Please Login or Register  to view this content.
    How would i be able to write it where i can put 1-100 in this code? Where i dont have to write this code 100 times.

    Any help with this is greatly appreciated.
    Last edited by Silverado83; 03-20-2013 at 02:41 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,602

    Re: How to choose a group of checkboxes?

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    03-16-2013
    Location
    Odessa, Texas
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: How to choose a group of checkboxes?

    Sorry about that. When I posted earlier it kept timing out so I didn't know if it posted and then could find it.

    Thanks

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to choose a group of checkboxes?

    Hi Silverado

    Love that Song...love the Movie...I'm an old guy...beside the point...

    You probably want to research Class Modules for this exercise...here's a couple of links

    http://www.bettersolutions.com/excel...A619860332.htm
    http://www.vbaexpress.com/forum/arch...hp/t-4806.html
    http://www.vbaexpress.com/forum/arch...p/t-16026.html

    Having said that...and that being my first advice...here's some code that will allow you to iterate through CheckBoxes. It depends on what type they are...

    If control toolbox
    Please Login or Register  to view this content.
    If forms toolbox
    Please Login or Register  to view this content.
    If this doesn't work, post your file, one of us will help you.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to choose a group of checkboxes?

    @Silverado

    The Forum has become very frustrating to use...hopefully it'll return to it's former self...It's been a while...perhaps...maybe...

  6. #6
    Registered User
    Join Date
    03-16-2013
    Location
    Odessa, Texas
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: How to choose a group of checkboxes?

    New_Visitor.xlsm

    jaslake,
    Thanks you for all of the info you provided but the code didnt work.
    Here is my spreadsheet. Currently i have 200 checkboxes. 1-100 when checked i want Columns A-F to to move to sheet18 (visitor). checkboxes 101-200 moved to sheet2(reoccuring). any help with this would be great.

    thanks

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to choose a group of checkboxes?

    Hi Silverado

    What should happen to the Data in Sheet Attendance Columns A ---> G once the Data's been moved to the appropriate sheet...should it be cleared?

  8. #8
    Registered User
    Join Date
    03-16-2013
    Location
    Odessa, Texas
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: How to choose a group of checkboxes?

    Jaslake

    What i was planning on doing is creating a button in sheet1 that when pressed would save then clear the data. What im also needing to do is everytime the sheet is open it will updated to the current date on sheet 1.

  9. #9
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to choose a group of checkboxes?

    Hi Silverado

    Ah "crap"...I was hoping we could use a Class Module on this exercise...I've grown quite fond of them...ah well...

    So I understand... here you're referring to Column A of Sheet Attendance?
    everytime the sheet is open it will updated to the current date on sheet 1
    As to the process...You'll enter the Sheet Attendance Data in Columns B through G and select a CheckBox as appropriate. After done entering (1 item or 100 items), you'll click a Button, and the Data will be moved from Sheet Attendance to either Sheet Visitor or Sheet Reocurring and Sheet Attendance will be cleared...Correct?

    Anything else I should know?

  10. #10
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to choose a group of checkboxes?

    Hi Silverado

    This Code is in the attached and appears to do as you describe.

    Please note that the sheet is protected and there is a Formula in Column A and Column A is locked.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    03-16-2013
    Location
    Odessa, Texas
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: How to choose a group of checkboxes?

    Yes that is correct....I tried your code this morning but kept getting an error message. i will try when i get home.

    Thanks again for all of your help.

  12. #12
    Registered User
    Join Date
    03-16-2013
    Location
    Odessa, Texas
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: How to choose a group of checkboxes?

    Jaslake

    Your code is now working thanks....One more question. Depending on current date like today (3/20/13) how would i get that same info from columns b though c to go to a tab named that month? Do you have any recommendations of how to learn what each (properties/Methods) mean. Any suggestions would be greatly appreciated. I would really like to be able to write what you just helped me with.

    Thanks again.

  13. #13
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to choose a group of checkboxes?

    Hi Silverado

    Do you mean move to Month in addition to Visitor and Reoccuring or instead of Visitor and Reoccuring?

    As for learning materials, you'll find more that you can absorb here
    http://www.excelforum.com/excel-prog...materials.html

  14. #14
    Registered User
    Join Date
    03-16-2013
    Location
    Odessa, Texas
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: How to choose a group of checkboxes?

    In addition

    Thanks

  15. #15
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to choose a group of checkboxes?

    Hi Silverado

    Replace the Code in Module 2 with this
    Please Login or Register  to view this content.

  16. #16
    Registered User
    Join Date
    03-16-2013
    Location
    Odessa, Texas
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: How to choose a group of checkboxes?

    Thanks, everything worked great!

  17. #17
    Registered User
    Join Date
    03-16-2013
    Location
    Odessa, Texas
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: How to choose a group of checkboxes?

    Thanks everything is working great.

  18. #18
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to choose a group of checkboxes?

    You're welcome...glad I could help. Thanks for the Rep.

+ 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