Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Combo Box Probelm

Status
Not open for further replies.

dustbuster

Programmer
Dec 19, 2002
95
Hello all,

I have a Combo Box on Sheet1 in my workbook.

Sheet 2 has a list of products in Column A and their price in column B

I populate the combo box with products listed in Column A of Sheet2.

How do I get the price of a product when it is selected from the list?
 
Hi dustbuster,

It rather depends on what else you're doing as well, but I would probably have two columns in the combo. Try setting the combo properties something like this:

Code:
ListFillRange:   Sheet2!A1:B200   (or whatever your rangle is)
ColumnCount:     2
BoundColumn:     2
ColumnWidths:    8;0
TextColumn:      -1

This should make the Products show in the combo and make both the name and the price available as properties of it.

Combo.Value should have the price and
Combo.Text should have the product

Enjoy,
Tony

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top