- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-6-28 17:48 ½s¿è
¦^´_ 17# av8d - Option Explicit
- Dim d As Object
- Private Sub UserForm_Initialize()
- Dim A As Range
- Set d = CreateObject("Scripting.Dictionary")
- With ActiveSheet
- For Each A In .Range("d2", .[d2].End(xlDown))
- d(A.Value) = IIf(d(A.Value) = "", A.Offset(, 1).Value, d(A.Value) & "," & A.Offset(, 1))
- Next
- ComboBox1.List = d.KEYS
- End With
- End Sub
- Private Sub ComboBox1_Change()
- If ComboBox1.ListIndex > -1 Then
- ComboBox2.List = Split(d(ComboBox1.Value), ",")
- ComboBox2.Value = ComboBox2.List(0)
- End If
- End Sub
½Æ»s¥N½X
|
|