Private Sub ComboBox1_Change()
ComboBox2.Clear
Dim x
x = ComboBox1.Value
If x = 1 Then
ComboBox2.AddItem "111111"
End If
If x = 2 Then
ComboBox2.AddItem "222222"
ComboBox2.AddItem "333333"
End If
End Sub
Private Sub UserForm_Activate()
ComboBox1.AddItem "1"
ComboBox1.AddItem "2"
ComboBox1.AddItem "3"
End Subcitovat