How to go about retrieving data from data validation in cell to and listbox or textbox in userform

bchacket

New Member
Joined
Jul 10, 2014
Messages
6
I am creating a spreadsheet that holds a list of part numbers with their corresponding information. Right now I have it so that a textbox in userform entered like this (aaa-123,bbb-456,ccc-789) turns into a data validation in a cell within the same row as the part number. This is done because part numbers contain more than one quote number on several occasions. Once the quote numbers are within the data validation of a cell the user can select the proper quote number and other corresponding cells will populate with the quote information. This works perfect when entering a new part but I run in to trouble when updating an existing part. I was thinking maybe having a textbox that when you hit enter it populates a listbox that would then populate the data validation of the cell. But the contents of that cell would then have to be pulled back in to the listbox every time the user wanted to update the part with a new quote number. I could make it as simple as the entry in this form (aaa-123,bbb-456,ccc-789) populates a hidden cell and that cell creates the data validation and then when you update the (aaa-123,bbb-456,ccc-789) is pulled back into the userform and shown. This method would work but it wouldn't look good and scrolling through the quotes would be a pain. However, If someone could tell me how to create a multiline textbox that will return after a certain length is achieved that isn't based off the width of the cell that might work.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,216,075
Messages
6,128,668
Members
449,463
Latest member
Jojomen56

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