ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   select from combobox and show a price in textbox (https://www.excelbanter.com/new-users-excel/93733-select-combobox-show-price-textbox.html)

gem

select from combobox and show a price in textbox
 
i want to allow the user to select something from a combo box then once
selected i want the price to be displayed in either a text box or a list box!

paul

select from combobox and show a price in textbox
 
i would use a forms toolabr combo box.Click on tha combo box on the forms
toolbar and click on the sheet where you want the box.You can then right
click on it and drag the borders to adjust its size or position.Right click
on the box again and select fornmat control.You will see the following
choices

Combo box properties

Input range Reference to the range containing the values to display in
the drop-down list.

Cell link Returns the number of the item that's selected in the combo box
(the first item in the list is 1). You can use this number in a formula or
macro to return the actual item from the input range.

For example, if a combo box is linked to cell C1 and the input range for the
list is D10:D15, the following formula returns the value from range D10:D15
based on the selection in the list:

=INDEX(D10:D15,C1)
you can now use this result and a vlookup formula to select your price

paul

remove nospam for email addy!



"gem" wrote:

i want to allow the user to select something from a combo box then once
selected i want the price to be displayed in either a text box or a list box!



All times are GMT +1. The time now is 08:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com