+ Reply to Thread
Results 1 to 3 of 3

Multi column ComboBox - How to Display the results of second column?

  1. #1
    Registered User
    Join Date
    10-31-2014
    Location
    usa
    MS-Off Ver
    2010
    Posts
    2

    Multi column ComboBox - How to Display the results of second column?

    Hello,

    I need to display the results of a two-column combo box in different cells.

    I know how to display the results for the first column:

    Private Sub CommandButton1_Click()
    Range("c72").Value = ComboBox1.Value
    Unload Me
    End Sub

    But I cant figure out how to display the matching result from the second column in cell C73.

    Thanks,
    NR

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Multi column ComboBox - How to Display the results of second column?

    You need to set the .TextColumn property of the combo box to the text that you want to appear in the combo box when it's selected. That is the .Text property of the combo box.
    The .BoundColumn determines the .Value property.

    Alternatly, you could directly access the (0-based) .List of the combo box, as in CommandButton2 below
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    10-31-2014
    Location
    usa
    MS-Off Ver
    2010
    Posts
    2

    Re: Multi column ComboBox - How to Display the results of second column?

    Perfect, thanks!

+ 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. Display results of a 2-column ComboBox
    By skysurfer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-17-2014, 01:27 PM
  2. Replies: 1
    Last Post: 07-22-2014, 08:27 PM
  3. Multi-Column ComboBox
    By babcock1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2009, 02:45 PM
  4. multi column combobox
    By nh1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-21-2006, 03:21 AM
  5. 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