Multiselect Listbox w/Assoc Textboxes

jfspsyd

New Member
Joined
Jun 4, 2009
Messages
8
I was hoping for some suggestions with the following idea.

I have a multiselect listbox that loads a large list of medications.

For my purposes it would be great to have a textbox associated with each item selected from the listbox as well as a second associated textbox where medication dosage could be entered. So that fucntionally, each time that a new item is chosen from the listbox two new textboxes become visible, the first filled with the selected medication and the second is a blank textbox where medication dosage could be entered. I believe at this point that the the list box and associated textboxes would be on a user form that would be closed out and the information stored in the excel sheet.

I really dont have a good idea about how to accomplish this and would very much appreciate suggestions.

Thanks in advance.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Would it work if you had a List Box with 2 columns, One for the Medication
and the other for the Dosage.
The appropriate medication could be selected from the listbox, the Dosage entered in the Text Box and then either by a "CommandButton" or a TextBox "lost_focus" Event, Column (2) of the Listbox could recieve the Dosage amount from the TextBox.
You could do this for multiselect in the listBox, then the Total data required (Medication and Dosage) from the ListBox could be entered in the sheet.
Mick
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,845
Members
452,948
Latest member
UsmanAli786

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