+ Reply to Thread
Results 1 to 3 of 3

Multi-Column Listboxes correspond to multi textboxes

Hybrid View

  1. #1
    Registered User
    Join Date
    04-17-2011
    Location
    Orlando
    MS-Off Ver
    Excel 2007
    Posts
    27

    Angry Multi-Column Listboxes correspond to multi textboxes

    I am Stumped...

    I have set up a userform that contains a listbox with 6 columns. Above that I have 6 textboxs that I would like to correspond to the Listbox.


    So when I select a row on the listbox, the cells of that row populate the textboxes.

    Is this possible??


    Thank you for your Time!!

    -Kyle

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Multi-Column Listboxes correspond to multi textboxes

    Hi Crebsington
    what have you tired?
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    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: Multi-Column Listboxes correspond to multi textboxes

    Hi Kyle
    Try this code
    Option Explicit
    Private Sub ListBox1_Click()
        With ListBox1
            TextBox1.Text = .List(.ListIndex, 0)
            TextBox2.Text = .List(.ListIndex, 1)
            TextBox3.Text = .List(.ListIndex, 2)
            TextBox4.Text = .List(.ListIndex, 3)
            TextBox5.Text = .List(.ListIndex, 4)
            TextBox6.Text = .List(.ListIndex, 5)
        End With
    End Sub
    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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