+ Reply to Thread
Results 1 to 3 of 3

Unique values for multi column listbox

  1. #1
    Registered User
    Join Date
    02-24-2019
    Location
    UK
    MS-Off Ver
    MS 365 PC & Mac (assume PC unless otherwise stated in post)
    Posts
    98

    Unique values for multi column listbox

    I have below code which works great (thanks Jacob Hilderbrand) for a single column, but I would like to return unique values from 2 columns, and seems it is not as easy as changing range from G2:G50 to G2
    :H50

    As example of what I want to achieve below is source data;

    Column G Column H
    Apple Red
    Apple Green
    Apple Green
    Grapefruit Pink
    Grapefruit Pink
    Apple Pink
    Apple Green

    I then want the list box to show only unique combinations;
    Apple Green
    Apple Pink
    Apple Red
    Grapefruit Pink

    Order is not important.

    Here is the code I have for single column;

    Please Login or Register  to view this content.
    Any help/guidance would be greatly appreciated.

  2. #2
    Valued Forum Contributor
    Join Date
    06-27-2010
    Location
    sYRIA
    MS-Off Ver
    Excel 2013
    Posts
    669

    Re: Unique values for multi column listbox

    Deleted
    Mac issue
    Sorry
    Last edited by mohadin; 11-21-2020 at 08:46 AM.

  3. #3
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,337

    Re: Unique values for multi column listbox

    It works but is cumbersome using a hidden helper sheet.
    Really needs arrays to replace helper sheet.
    torachan.
    Attached Files Attached Files

+ 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] Find as you type in listbox control - solution for multi-column listbox - vba dictionary
    By wazimu13 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-05-2018, 03:42 AM
  2. [SOLVED] Show unique values in listbox and activate related cell if i select value in Listbox
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-22-2018, 06:54 AM
  3. [SOLVED] Populating Multi-Column Listbox with Conditions from Another Listbox
    By ykobure in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-05-2015, 02:28 AM
  4. How to retrive values in multi listBox
    By auto9 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-03-2014, 09:13 PM
  5. Problem in Returning Values from a Multi-column Listbox (ActiveX)
    By shivboy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-16-2007, 02:51 PM
  6. [SOLVED] Unique Values Between Two Multi-Column Lists.
    By Intern Ian in forum Excel General
    Replies: 0
    Last Post: 11-09-2005, 05:10 PM
  7. returning values multi column listbox
    By GeorgeFD29 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2005, 09:06 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