I have a userform that I have 2 combo boxs on. I have populated combobox1 using:
Private Sub UserForm_Initialize()
combobox1.RowSource = "maintenence"
Maintenence is my main named range consisting of about 10 items listed. now depending on what is selelcted in combobox1 I need combobox2 to populate with the corresponding range king of like a submenu.
Example
If service is selected in combobox1, I need combobox2 to be populate with my range named service.
If fluids is selected in combobox1, I then need combobox2 populated with my list of fluids.
And of course if I change my mind and select something different I need box2 to populate accordingly.
I am thinking the code has to go under the combobox1 change() but I am not sure what I need to put to make this happen..
Any help pushing me in the right direction would be great
Private Sub UserForm_Initialize()
combobox1.RowSource = "maintenence"
Maintenence is my main named range consisting of about 10 items listed. now depending on what is selelcted in combobox1 I need combobox2 to populate with the corresponding range king of like a submenu.
Example
If service is selected in combobox1, I need combobox2 to be populate with my range named service.
If fluids is selected in combobox1, I then need combobox2 populated with my list of fluids.
And of course if I change my mind and select something different I need box2 to populate accordingly.
I am thinking the code has to go under the combobox1 change() but I am not sure what I need to put to make this happen..
Any help pushing me in the right direction would be great