+ Reply to Thread
Results 1 to 7 of 7

Increment through Checkbox's to check status and change a value

  1. #1
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    Increment through Checkbox's to check status and change a value

    I have a userform that has 28 checkbox's that we go through that we check which ones apply to a report.. To keep those boxes checked as the supervisor's cycle through the reports, I am leaving a 28 digit code next to the report which is created as they check/uncheck the proper checkbox's.


    I have been trying to research it a bit and can't find the code that I require. I hope below explains what I am looking for.

    Please Login or Register  to view this content.
    So if say CheckBox10.value = True, then the 10th digit of the ID will change to 1 while keeping the rest of the ID the same.


    Thanks in advance.
    Last edited by vamosj; 05-03-2014 at 11:21 AM.
    Janos S. Vamos
    Data Systems Technician/Fire Controlman PO1(SW/AW)
    US Navy Retired


    Remember, Record Macro can be your friend for figuring out solutions.

    Good or Bad, let me know how I did by clicking on the "Add Reputation" * just to the lower left of here. it only takes a few seconds to let someone know.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Increment through Checkbox's to check status and change a value

    Please Login or Register  to view this content.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Increment through Checkbox's to check status and change a value

    there may be an easier way :o)

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Increment through Checkbox's to check status and change a value

    Hi Janos,

    Thank you for serving in the Military. Try the following:
    Please Login or Register  to view this content.
    Lewis

  5. #5
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    Re: Increment through Checkbox's to check status and change a value

    Thanks for your input. After a little more research and what you guys have provided, I was able to come up with the following which works like a charm.

    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Increment through Checkbox's to check status and change a value

    Your solution looks fine, but I have two suggestions:

    Please Login or Register  to view this content.
    Lewis

  7. #7
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    Re: Increment through Checkbox's to check status and change a value

    Thank you, that should help in case there is a space in there that I can't see...

+ 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. Assign value to a cell, depending upon checkbox status
    By jonnycarson in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-04-2013, 06:41 AM
  2. [SOLVED] How do I change a checkbox to unchecked without running the code within the checkbox
    By jsunnb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-27-2012, 09:28 PM
  3. Replies: 4
    Last Post: 04-08-2012, 09:43 PM
  4. Checking the status of a checkbox in a user form
    By Peter Rooney in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-01-2005, 04:09 PM
  5. Check Box Status
    By Tom in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2005, 10:06 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