zabiullakhan
Active Member
- Joined
- Aug 30, 2010
- Messages
- 310
I have this code to populate ComboBox2 with refrence to ComboBox1, however this ComboBox2 is not geting updated. please help
Code:
Private Sub ComboBox1_Change()
If ActiveSheet.ComboBox1.Value = "animals" Then
ActiveSheet.ComboBox2.ListFillRange = Range("Reference!B2:B7")
ElseIf ActiveSheet.ComboBox1.Value = "flowers" Then
ActiveSheet.ComboBox2.ListFillRange = Range("Reference!B8:B14")
ElseIf ActiveSheet.ComboBox1.Value = "colors" Then
ActiveSheet.ComboBox2.ListFillRange = Range("Reference!A14:A15")
End If
End Sub