Hello -
I have setup a userform with 6 different combo boxes for users to make selections from and a Submit button.
I have macros setup for each of the comboboxes similar to what I am showing here below.
Essentially, each combobox has choices from 1-4, and then those choices are linked to an autofilter macro. So as an example, if the user selects Financial Services, then the form should run macro Team_1.
I would like for the user to be able to makle their selections on the userform, and then click Submit, and that would then run the appropriate macro based on the users selections on the form, and display the filtered data.
I am strugglig now with programming my Submit button to basically read the inputs for the 6 comboboxes, and execute the appropriate macro. Could someone please help me with this first one? I know that once I see the code written, I will understand it, and be able to replicate for my other comboboxes.
Thanks SO much in advance for your help here today!!
Private Sub ComboBox1_Change()
If Me.ComboBox2.Value = "Financial Services" Then
Call Team_1
ElseIf Me.ComboBox2.Value = "Consumer" Then
Call Team_2
ElseIf Me.ComboBox2.Value = "Tel/Tech" Then
Call Team_3
ElseIf Me.ComboBox2.Value = "B&C" Then
Call Team_4
End If
End Sub
I have setup a userform with 6 different combo boxes for users to make selections from and a Submit button.
I have macros setup for each of the comboboxes similar to what I am showing here below.
Essentially, each combobox has choices from 1-4, and then those choices are linked to an autofilter macro. So as an example, if the user selects Financial Services, then the form should run macro Team_1.
I would like for the user to be able to makle their selections on the userform, and then click Submit, and that would then run the appropriate macro based on the users selections on the form, and display the filtered data.
I am strugglig now with programming my Submit button to basically read the inputs for the 6 comboboxes, and execute the appropriate macro. Could someone please help me with this first one? I know that once I see the code written, I will understand it, and be able to replicate for my other comboboxes.
Thanks SO much in advance for your help here today!!
Private Sub ComboBox1_Change()
If Me.ComboBox2.Value = "Financial Services" Then
Call Team_1
ElseIf Me.ComboBox2.Value = "Consumer" Then
Call Team_2
ElseIf Me.ComboBox2.Value = "Tel/Tech" Then
Call Team_3
ElseIf Me.ComboBox2.Value = "B&C" Then
Call Team_4
End If
End Sub