+ Reply to Thread
Results 1 to 5 of 5

Have the state of a checkbox populate a field.

  1. #1
    Registered User
    Join Date
    03-02-2012
    Location
    Kansas, USA
    MS-Off Ver
    Excel 2010
    Posts
    19

    Have the state of a checkbox populate a field.

    I have several checkboxes on a worksheet I want them to make specific fields, that have been asigned to them, to equal 1. So checkbox one = a1 and checkbox 2 = a2 and so on.. when the checkbox is true a 1 should appear in the corresponding field. This seems like it should be easy. I dont get an error but it does not work either. Sense this is in the code of the checkbox I am not sure if Checkbox1 even needs to be identified. I though I should be able to just say when its current state = true put a 1 in A1.

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor bonny24tycoon's Avatar
    Join Date
    04-02-2012
    Location
    Hell
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    405

    Re: Have the state of a checkbox populate a field.

    Hi

    Can you attach an example spreadsheet??
    Thanks,

    Bonny Tycoon


  3. #3
    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: Have the state of a checkbox populate a field.

    Hi azland00123
    Assuming it's an ActiveX Checkbox, place this code in the Sheet Module
    Please Login or Register  to view this content.
    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.

  4. #4
    Registered User
    Join Date
    03-02-2012
    Location
    Kansas, USA
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Have the state of a checkbox populate a field.

    Test macro.xlsm
    Here is a copy of a workbook with the test code in it.

  5. #5
    Registered User
    Join Date
    03-02-2012
    Location
    Kansas, USA
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Have the state of a checkbox populate a field.

    Jaslake,
    It worked perfect.
    Thanks Bob

+ 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