+ Reply to Thread
Results 1 to 9 of 9

Combo Box list of unique values in range

  1. #1
    Registered User
    Join Date
    03-01-2007
    Posts
    47

    Combo Box list of unique values in range

    Hello,

    I've attached a workbook with the basics of what I need to do. I'm using a User Form and would like to input data on the form using values that are already existing in a range. The workbook is pretty self-explanatory.

    Thanks,
    Jason
    Attached Files Attached Files
    Last edited by Jason_2112; 11-10-2010 at 02:03 PM.

  2. #2
    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: Combo Box list of unique values in range

    Hi Jason

    I've added a couple of Dynamic Named Ranges to your workbook. This should do as you require.

    Let me know of issues.

    John
    Attached Files Attached Files
    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.

  3. #3
    Registered User
    Join Date
    03-01-2007
    Posts
    47

    Re: Combo Box list of unique values in range

    Thanks for the help, John. That does mostly what I need, however, I would like to have only unique values show up in the combo box. I found a way to make a dynamic list of unique values at this site: http://www.eggheadcafe.com/software/...ct-values.aspx - all the way at the bottom of the page. This method takes a long time to compute every time I add data to the sheet using the user form.

    Any other suggestions?

    Thanks,

    Jason

  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: Combo Box list of unique values in range

    Hi Jason

    Sorry, I missed this
    I would like to have only unique values show up in the combo box
    That's quite easily done. I'll post back this afternoon.

    John

  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: Combo Box list of unique values in range

    Hi Jason

    Try the attached. Let me know of issues.

    John
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-01-2007
    Posts
    47

    Re: Combo Box list of unique values in range

    Is there a way to make the list on Sheet2 a dynamic list so that if a new unique value is added to the data on Sheet1, the extracted unique values will also update?

  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: Combo Box list of unique values in range

    Hi Jason

    The procedure as written does that each time the "Show UserForm1" button is clicked.

    If you add a unique value in Columns A or B, it will be added to the Dynamic Ranges on sheet2 on button click.

    Is this what you have in mind?

    John

  8. #8
    Registered User
    Join Date
    03-01-2007
    Posts
    47

    Re: Combo Box list of unique values in range

    Yes. That's exactly what I wanted it to do. Sorry I hadn't fully tested it out... didn't realize it was part of the code for the user form.

    Thanks again for your help!

    Jason

  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: Combo Box list of unique values in range

    Hi Jason

    Glad to be of help. If this resolves your issue, please mark your thread as solved.

    To mark your thread solved do the following:
    - Go to your first post on the thread
    - Click edit
    - Click Advance
    - Just below the word "Title:" you will see a dropdown with the word No prefix.
    - Change to Solve
    - Click Save

    If I've helped, a click on the scales is appreciated.

    John

+ 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