+ Reply to Thread
Results 1 to 5 of 5

Combo Box - Display Unique Items in List

  1. #1
    Registered User
    Join Date
    08-17-2007
    Location
    Illinois, USA
    Posts
    3

    Combo Box - Display Unique Items in List

    I have a small fixed size table (10 rows x 9 columns) with company name, department name, company number, etc. entered on each row. These companies are all involved on a specific project and usually change for each project. A particular company can be listed in the table multiple times each having a different department name. I have several combo boxes that I would like to display a unique list of these company names listed in the table. Does anyone know how this could be done?
    Thanks,
    Gary S

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Gary

    Have a look at the file I attached to this post

    http://excelforum.com/showthread.php?t=611074

    I pretty much does the same sort of thing - create a unique list of names for a dropdown. It does go further and makes things dependent for subsequent comboboxes, but it should get you started.


    rylo

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Gary,

    Here is another method. This macro loads a Drop Down by name with only the unique values from the range specified. Place this code in a Standard VBA Module.
    Please Login or Register  to view this content.
    Macro Example - This could be attached to a button
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross
    Last edited by Leith Ross; 08-18-2007 at 08:10 AM.

  4. #4
    Registered User
    Join Date
    08-17-2007
    Location
    Illinois, USA
    Posts
    3
    Quote Originally Posted by rylo
    Gary

    Have a look at the file I attached to this post

    http://excelforum.com/showthread.php?t=611074

    I pretty much does the same sort of thing - create a unique list of names for a dropdown. It does go further and makes things dependent for subsequent comboboxes, but it should get you started.


    rylo
    Thanks for your response. This is helpful.
    Gary S

  5. #5
    Registered User
    Join Date
    08-17-2007
    Location
    Illinois, USA
    Posts
    3
    Quote Originally Posted by Leith Ross
    Hello Gary,

    Here is another method. This macro loads a Drop Down by name with only the unique values from the range specified. Place this code in a Standard VBA Module.
    Please Login or Register  to view this content.
    Macro Example - This could be attached to a button
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross
    Thanks for your response. Appreciate the help.
    Gary S

+ 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