KayWill

New Member
Joined
Jan 22, 2015
Messages
36
Hello, I've been searching the web for hours and it seems I just can not locate exactly what I need. I'm hoping someone can assist. I've created a userform that has a listbox which users can add items. I have set the RowSource to the named range in the Excel spreadsheet that will also hold added items from the user. I want the listbox, once selected, to auto populate a textbox. Brief example below: (also see attachment)

Sheet name is: "PartIndex" (contains part # in Column1 and description in Column 2, approx. 35K+ records)
Named Range is: "PTNO"
ListBox 11 through ListBox20 all have a ROWSOURCE as PTNO

I want the PTNO to update with any "new" 'part numbers' included by the user and if already existing in the list I want the TextBox to auto populate with the description that matches the part number selected in the listbox.

I tried using the following but only works with the first listbox:
Me.ListBox11.RowSource = ""
Me.ListBox11.List = Sheets("PartIndex").Range("A3:B35710").Value

Hope this link helps
https://docs.google.com/document/d/14XmlZrZnFEE9Z1K1uJVUV9DHYj4bnj9OArH0cTxSuKo/edit?usp=sharing
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hello, I've been searching the web for hours and it seems I just can not locate exactly what I need. I'm hoping someone can assist. I've created a userform that has a listbox which users can add items. I have set the RowSource to the named range in the Excel spreadsheet that will also hold added items from the user. I want the listbox, once selected, to auto populate a textbox. Brief example below: (also see attachment)

Sheet name is: "PartIndex" (contains part # in Column1 and description in Column 2, approx. 35K+ records)
Named Range is: "PTNO"
ListBox 11 through ListBox20 all have a ROWSOURCE as PTNO

I want the PTNO to update with any "new" 'part numbers' included by the user and if already existing in the list I want the TextBox to auto populate with the description that matches the part number selected in the listbox.

I tried using the following but only works with the first listbox:
Me.ListBox11.RowSource = ""
Me.ListBox11.List = Sheets("PartIndex").Range("A3:B35710").Value

Hope this link helps
https://docs.google.com/document/d/14XmlZrZnFEE9Z1K1uJVUV9DHYj4bnj9OArH0cTxSuKo/edit?usp=sharing

Seems like I resolved my own question, guess this was another one no one wanted to respond to.
 
Upvote 0

Forum statistics

Threads
1,213,484
Messages
6,113,924
Members
448,533
Latest member
thietbibeboiwasaco

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top