Text Box Update

colmguckian

New Member
Joined
Feb 11, 2011
Messages
35
I have a user Form with 3 ComboBoxes and 1 Text Box.
The Values in ComboBox2 depends on the selection in ComboBox1.
The Values in ComboBox3 Depends on the selection in ComboBox2.
I Want TextBox1 to Show a Price, depending on which Item in ConboBox3 is Selected. All ComboBoxes are populated using the RowSource Property.
The RowSources are the named Ranges in Column B of sheet1.
The associated Prices for each Value in Column B are on the Same Row in Column E. How would I get these prices to appear in TextBox1.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
You can try this:

Set your named range that is the rowsource to encompass your data B through E;
Set Combobox3 Columns to 4
Set ColumnWidths to 10 pt;0 pt;0 pt;0 pt <-set to 10 if you want to show them the price in the combobox.

Essentially, you're loading the price into the combo box array (along with whatever is in C & D).

then it's pretty simple to assign the value to textbox.
Code:
Private Sub ComboBox3_Change()
TextBox1.Text = ComboBox3.List(ComboBox3.ListIndex, [B]3[/B]) 'the column index here is always option base 0 
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,730
Members
452,939
Latest member
WCrawford

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