combo box problem

jimmywanna

Board Regular
Joined
Mar 18, 2002
Messages
182
I have made a combobox which lists wards which medication is to be sent to. I need to know how:
when the user clicks on one of the 10 ward which drop down from the combo box, this then appears in another cell.
So far i can only manage (using the help) to get it to return a number which relates to the position in the drop down list which is clicked. i need it to return the text (ward) which is clicked on. I'm sorry if this isn't clear but i'm a bit new to control buttons and macros and stuff.
i'd really appreciate some help
jamie
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
OK, say you want it in Cell A1, you'd need to put put this in your Combobox event:

Worksheets("sheetwhatever").range("a1").value = combobox1

Hope this helps
 
Upvote 0
If you're using a Form toolbar ComboBox use the Linked cell to get the "row" number of the selection, then use the INDEX function to retrieve the "actual" selected text. Something like

=INDEX(ComboBoxFillRange,LinkedCell)
 
Upvote 0

Forum statistics

Threads
1,214,430
Messages
6,119,454
Members
448,898
Latest member
drewmorgan128

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