- ©«¤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
|
¦^´_ 25# av8d - ption Explicit
- Dim d As Object
- Private Sub UserForm_Initialize()
- Dim A As Range, W As String
- Set d = CreateObject("Scripting.Dictionary")
- With ActiveSheet
- For Each A In .Range("d2", .[d2].End(xlDown))
- If d(A.Value) = "" Then
- d(A.Value) = A.Offset(, 1).Value
- Else
- W = "," & d(A.Value) & "," '¦r¨åª«¥ó¤º®e«e«á¥[¤W ,
- If InStr(W, "," & A.Offset(, 1) & ",") = 0 Then d(A.Value) = d(A.Value) & "," & A.Offset(, 1)
- 'InStr(w, "," & A.Offset(, 1) & ",") = 0 ¤ñ¹ï¦r¨åª«¥ó¤º®e¦³µLA.Offset(, 1)ªº¦r¦ê
- End If
- Next
- ComboBox1.List = d.KEYS
- End With
- End Sub
½Æ»s¥N½X |
|