ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel VBA Combo Box Populating dependent on other combo box choices (https://www.excelbanter.com/excel-programming/356076-excel-vba-combo-box-populating-dependent-other-combo-box-choices.html)

ikabodred

Excel VBA Combo Box Populating dependent on other combo box choices
 
I am trying to populate a combo box that is dependent on another combo
box selection. I currently trying to use a "Select Case
comboBox1.value", "Case 1, Case 2.....Case N", and I am referenceing
the list index of the selection in the independent combo box to be the
case number in the "comboBox1.value" case. This is not working. Can
anyone help me out?


Tom Ogilvy

Excel VBA Combo Box Populating dependent on other combo box choice
 
Select Case Combobox1.ListIndex
case 0

case 1

case 2

case else

end Select

this assumes a combobox from the control toolbox toolbar.

--
Regards,
Tom Ogilvy


"ikabodred" wrote:

I am trying to populate a combo box that is dependent on another combo
box selection. I currently trying to use a "Select Case
comboBox1.value", "Case 1, Case 2.....Case N", and I am referenceing
the list index of the selection in the independent combo box to be the
case number in the "comboBox1.value" case. This is not working. Can
anyone help me out?




All times are GMT +1. The time now is 10:35 AM.

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