+ Reply to Thread
Results 1 to 6 of 6

Need the Userform Combobox to display value from list only once

  1. #1
    Forum Contributor
    Join Date
    08-13-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    209

    Need the Userform Combobox to display value from list only once

    Good morning,

    My current code is:

    Please Login or Register  to view this content.
    The lists I have have repeat values and I need the combobox to display these only once.

    Thanks!

    M

  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: Need the Userform Combobox to display value from list only once

    Hi SUTTEHFACE

    Not tested but you can try something like this
    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.

  3. #3
    Forum Contributor
    Join Date
    08-13-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    209

    Re: Need the Userform Combobox to display value from list only once

    Wow, thanks John for your help! This almost works. The ShiftLevel combo box is displaying the list of supervisors instead of shiftlevel, but it is displaying the minimized list without all the duplicates. The supervisor combo box on the other hand is displaying all of the shiftlevels, including all the duplicates. I was looking into using CreateObject("scripting.dictionary") but haven't been able to get it successfully working.

    Thanks!

    M

  4. #4
    Forum Contributor
    Join Date
    08-13-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    209

    Re: Need the Userform Combobox to display value from list only once

    I keep getting subscript out of range error, not sure what is causing it:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    08-13-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    209

    Re: Need the Userform Combobox to display value from list only once

    Alright, found this version but I end up with with the same list in both combo boxes

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    08-13-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    209

    Re: Need the Userform Combobox to display value from list only once

    Couple typos, seems to be working!

+ 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. [SOLVED] Make combobox list options dependant on selection in another combobox within a userform
    By Vladimir_Dobvchenko in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-23-2013, 05:30 AM
  2. Userform Combobox to display image name from file
    By manda_w in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-29-2013, 03:21 AM
  3. display images on the userform when something out of a combobox is selected
    By Ghosty in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2012, 06:07 AM
  4. [SOLVED] Why Won't The Date Display Correctly In A Userform Combobox?
    By ScotyB in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-09-2012, 02:14 PM
  5. userform combobox to display sheet tabs to print
    By stevesunfold in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-26-2008, 06:30 PM

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