+ Reply to Thread
Results 1 to 8 of 8

Userform: Have multiple checkbox values populate to one cell

  1. #1
    Registered User
    Join Date
    12-12-2013
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    92

    Userform: Have multiple checkbox values populate to one cell

    Hello,

    I am currently have a userform with 34 differnt check boxes. The check boxes are in a frame labeled as Codes. I currently have the code set up to enter the caption from the check box into a cell. If a user selects multiple check boxes, only one is currently entered into the cell.

    The code I am currently using is:

    Please Login or Register  to view this content.
    Can this be modified to have multiple options put into (emptyRow, 7) separated by a comma?
    I have searched the forum and other forums and found similar questions; however the code I have tried I am not able to manipulate to work with what I have.

    Thank you for the help.

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Userform: Have multiple checkbox values populate to one cell

    this may work....it is completely untested because I don't have a bunch of checkboxes....but I believe the theory is sounds....this should replace all the IF's...

    Please Login or Register  to view this content.
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Userform: Have multiple checkbox values populate to one cell

    Perhaps something like this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  4. #4
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Userform: Have multiple checkbox values populate to one cell

    my syntax won't work....Norie's looks like it will though....Go Norie

  5. #5
    Registered User
    Join Date
    12-12-2013
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Userform: Have multiple checkbox values populate to one cell

    For Judgeh59:
    I receive a run-time error '438': Object doesn't support this property or method and highlighted is
    Please Login or Register  to view this content.
    For Norie:
    Compile error: Next without For and highlighted
    Please Login or Register  to view this content.

  6. #6
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Userform: Have multiple checkbox values populate to one cell

    Norie - looks like you left out the END IF....

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    12-12-2013
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Userform: Have multiple checkbox values populate to one cell

    You got it! I added it in and it works wonderfully. Thank you all for your help!

  8. #8
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Userform: Have multiple checkbox values populate to one cell

    Great job Norie....I never played with the Controls object....thanks....

+ 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. UserForm Checkbox populate last empty row of range
    By djsouljah in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-16-2013, 06:14 PM
  2. [SOLVED] Populate cell values into 6 named text boxes in a userform then edit if required
    By How How in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-05-2013, 05:51 AM
  3. Replies: 0
    Last Post: 11-15-2012, 12:29 PM
  4. Populate checkbox values in user form to cell
    By pavu in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2012, 08:26 AM
  5. Populate checkbox values in user form to cell
    By in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-01-1970, 12:00 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