+ Reply to Thread
Results 1 to 5 of 5

Multi-Column ComboBox

  1. #1
    Registered User
    Join Date
    12-30-2020
    Location
    Athens, Hellas
    MS-Off Ver
    1997-2003
    Posts
    17

    Multi-Column ComboBox

    Working with Excel/VBA, I want to create a 2-column ComboBox which features e.g. the first name and the surname of actors. The source is an Excel worksheet, with the names in Column A and the surnames in Column B.
    The contents transition from Excel to the userform ComboBox has worked out fine, selecting a row (of the ComboBox) is also fine, but when a ComboBox item is selected I only get to view the first name, not both names together.

    Meaning when the ComboBox contents are all viewable as drop-down list and I toggle between the lines, each line is "fully selected" (meaning that both name & surname are "blue colored"). Yet when I actually click the mouse - and thus all I can see from the ComboBox is the selected actor/actress - only the first name appears. The surname still exists but is not viewable unless the full contents are dropped down again.

    Any ideas why this is happening and how I can overcome it ?

    Thank you in advance.

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

    Re: Multi-Column ComboBox

    have a third column with columns 2 & 3 concatenated and make the new column the bound column so that it becomes the combobox value.
    only one column can be the key column.

  3. #3
    Registered User
    Join Date
    12-30-2020
    Location
    Athens, Hellas
    MS-Off Ver
    1997-2003
    Posts
    17

    Re: Multi-Column ComboBox

    You mean 3rd ComboBox column is columns 1 & 2 concatenated ?
    And the whole issue is, more or less, about the Bound Column property ... correct ?

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

    Re: Multi-Column ComboBox

    yes, you can have a number of columns visible in the dropdown list, however the search is done on the bound column.

  5. #5
    Registered User
    Join Date
    12-30-2020
    Location
    Athens, Hellas
    MS-Off Ver
    1997-2003
    Posts
    17

    Re: Multi-Column ComboBox

    Thank you torachan !

+ 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. Searching Columns with multi column Combobox
    By LightHeart7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-09-2015, 11:26 AM
  2. Multi column ComboBox - How to Display the results of second column?
    By nreyes2000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-13-2014, 04:28 PM
  3. [SOLVED] Multi-column combobox formatting issue
    By MarmaladeLover in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-22-2014, 07:14 AM
  4. [SOLVED] Populating a Multi column Combobox in a userform
    By anandvh in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-14-2012, 04:11 PM
  5. Multi-Column ComboBox
    By babcock1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2009, 02:45 PM
  6. multi column combobox
    By nh1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-21-2006, 03:21 AM
  7. [SOLVED] Multi Column ComboBox
    By Steve Roberts in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2005, 09:06 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