+ Reply to Thread
Results 1 to 7 of 7

Using Check Boxes in a Userform

  1. #1
    Forum Contributor
    Join Date
    03-26-2014
    Location
    Kentucky
    MS-Off Ver
    Excel 2013
    Posts
    128

    Using Check Boxes in a Userform

    I have a Userform that has a few TextBoxes that paste into specific cells. In that same userform I have 9 CheckBoxes (CheckBox1, CheckBox2, etc...) that need to paste values when checked in the next empty rows in Column A on Sheet2. So CheckBox1, if true, would paste the value "Cal1" in cell A1. CheckBox2 would paste the value "Cal2" in cell A2, and so on.. What code do I need to do this with? I have never used the CheckBoxes and would greatly appreciate some help.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Using Check Boxes in a Userform

    I miss read your requirement, but there is enough here to get you going.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Contributor
    Join Date
    03-26-2014
    Location
    Kentucky
    MS-Off Ver
    Excel 2013
    Posts
    128

    Re: Using Check Boxes in a Userform

    Thank you for the reply, I tried this code but I failed to mention that whatever is checked needs to be pasted into the next empty row. So if CheckBox1 and CheckBox7 are the only ones checked then they need to appear in cell A1 and A2. Also CheckBox1 needs to say Cal 1, CB2 needs to say Cal 2, CB3 Cal3, CB4 DOA1, CB5 DOA2, CB6 HYDRO, CB7 THC HYDRO, CB8 Negative. Sorry for the confusion and i appreciate the help tremendously.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Using Check Boxes in a Userform

    OK#

    Try this amended code:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    03-26-2014
    Location
    Kentucky
    MS-Off Ver
    Excel 2013
    Posts
    128

    Re: Using Check Boxes in a Userform

    I keep getting a debug error 13: Type mismatch for
    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Using Check Boxes in a Userform

    Are you using Excel 2013?

    I get no errors

    Is this version working?
    Attached Files Attached Files
    Last edited by mehmetcik; 02-11-2015 at 10:54 PM.

  7. #7
    Forum Contributor
    Join Date
    03-26-2014
    Location
    Kentucky
    MS-Off Ver
    Excel 2013
    Posts
    128

    Re: Using Check Boxes in a Userform

    Ah i just copied the code into my module again and it works now! Thank you so much for all the help! This helps me tremendously!@

+ 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. Need to Count number of Check Boxes checked on a userform
    By UMBiii in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-12-2014, 03:44 PM
  2. [SOLVED] UserForm Auto Check check boxes if TextBoxes are not empies
    By MariaPap in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2013, 11:36 AM
  3. VBA UserForm Multiple Check Boxes
    By jquintana83 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-06-2013, 05:59 PM
  4. Running an Advanced Filter using Userform check boxes
    By gr6au in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2011, 04:51 PM
  5. Check Boxes in UserForm
    By mccrimmon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2008, 12:04 PM

Tags for this Thread

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