返回列表 上一主題 發帖

如何在自定表單中建立二階的下拉式選單

回復 1# hbjang
  1. Private Sub ComboBox1_Change()
  2. Set d = CreateObject("Scripting.Dictionary")
  3. d(1) = Array("甲", "乙", "丙", "丁", "戊", "己", "庚", "辛", "壬", "癸")
  4. d(2) = Array("金", "木", "水", "火", "土")
  5. With ComboBox2
  6. .Clear
  7. s = CInt(ComboBox1)
  8. .List = d(s)
  9. End With
  10. End Sub

  11. Private Sub UserForm_Initialize()
  12. With ComboBox1
  13. .List = Array(1, 2)
  14. End With
  15. End Sub
複製代碼
play.gif
學海無涯_不恥下問

TOP

        靜思自在 : 【時間無法遮擋】怕時間消逝,花了許多心血,想盡各式方法要遮擋時間,結果是:浪費了更多時間,且一無所成!
返回列表 上一主題