Private Sub ComboBox1_Change() Range("A1").Value = ComboBox1.Value End Sub
You can replace A1 with the cell of your choice.
Laetz
Hello....how do we copy the values from an Excel cell into a combobox????
And it should additionally take all the values present in that column...
Let me explain more clearly....The user selects a food item in a combobox and by clicking on an order button, this value will be displayed on the "menu" tab of Excel. And I want to retrieve this value to put it in a combobox.....Help me, it's super urgent...Thank you
1- right-click on the combobox > properties > look for "ListFillRange" enter the name of the sheet and the column e.g. menu!A1:A20
the exclamation point is important
Laetz
Yeah, but the problem is that there's a different tab for each type of food, and they aren't all equal in terms of the number of lines... And since we can add lines at any time, well, there you go...
And it should additionally take all the values present in that column...
Let me explain more clearly....The user selects a food item in a combobox and by clicking on an order button, this value will be displayed on the "menu" tab of Excel. And I want to retrieve this value to put it in a combobox.....Help me, it's super urgent...Thank you