Input via TextBox & Output in List Box

Dheepak

Board Regular
Joined
Aug 25, 2013
Messages
64
Hi,

How to display the inputs to list box. I have a text box which will ask the Product ID and everytime when i click the button add new one, the text box should become empty to get the next input and whatever input that i gave should get display in the list box.

I tired to transfer the data to excel cell and pull that via Row Source in list box, but getting only one value not all. below is the one which i have used.

Code:
Sheets("Sheet5").Range("A1").Value = TextBox1.Text

i cant define the range since, the product ID count is depends and it may be 1 or 10. I'm assuming we need to use FOR loop to get this but not sure about the exact code.

could someone please help on it!!!!

Regards,
Dheepak
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

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