睡了一覺,自己解決了,分享給大家
Private Sub UserForm_Activate()
ComboBox1.AddItem "資料1"
ComboBox1.AddItem "資料2"
ComboBox1.AddItem "資料3"
Private Sub ComboBox1_Change()
If ComboBox1.Text = "資料1" Then ComboBox2.clear '選定資料後清除,避免選兩次會纍加清單
If ComboBox1.Text = "資料1" Then ComboBox2.AddItem "A"
If ComboBox1.Text = "資料1" Then ComboBox2.AddItem "B"
If ComboBox1.Text = "資料2" Then ComboBox2.clear
If ComboBox1.Text = "資料2" Then ComboBox2.AddItem "C"
If ComboBox1.Text = "資料2" Then ComboBox2.AddItem "D"
If ComboBox1.Text = "資料2" Then ComboBox2.AddItem "E"
If ComboBox1.Text = "資料3" Then ComboBox2.clear
If ComboBox1.Text = "資料3" Then ComboBox2.AddItem "F"作者: GBKEE 時間: 2015-10-7 14:17