I currently have three combo boxes (comboBox2, comboBox3, comboBox4). ComboBox2.ListFillRange and ComboBox3.ListFillRange are currently linked to named ranges. Depending on what is chosen in ComboBox2 and ComboBox3 the ListFillRange will be different for ComboBox4, i.e it looks at a different name range.
Private Sub ComboBox3_Change()
Application.EnableEvents = True
If ComboBox2.Value = "Internal" And ComboBox3.Value = "Breach" Then
ComboBox4.ListFillRange = "=Internal_Breach"
ElseIf ComboBox2.Value = "Internal" And ComboBox3.Value = "Error" Then
ComboBox4.ListFillRange = "=Internal_Error"
ElseIf ComboBox2.Value = "External" And ComboBox3.Value = "Breach" Then
ComboBox4.ListFillRange = "=External_Breach"
ElseIf ComboBox2.Value = "External" And ComboBox3.Value = "Error" Then
ComboBox4.ListFillRange = "=External_Error"
Else: ComboBox2.Value = "External" And ComboBox3.Value = "Error"
ComboBox4.ListFillRange = "=External_Error"
End If
End Sub
When I select "Internal" for ComboBox2 and "Breach" for ComboBox3 I get the required ListFillRange for ComboBox4. But if I then select "External" for ComboBox2 and leave ComboBox3 as "Breach" I don't get the expected ListFillRange in ComboBox4 for the "External"-"breach" combination, I have to reselect "Breach" to get this. Anyone know how I can get it to update automatically when I reselect one and leave the other?