- ©«¤l
- 703
- ¥DÃD
- 276
- ºëµØ
- 0
- ¿n¤À
- 1005
- ÂI¦W
- 1
- §@·~¨t²Î
- Windows 10
- ³nÅ骩¥»
- Office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-6-30
- ³Ì«áµn¿ý
- 2024-5-29
|
¥»©«³Ì«á¥Ñ av8d ©ó 2012-6-28 22:40 ½s¿è
¦^´_ 20# GBKEE
¥Ñ©ó§ÚµLªk¨Ï¥ÎOption Explicit¦]¬°§Ú¤j¦h¼Æ¤º®e³£¨S+Option Explicit
¾ÉPÅܼƧڨS¦³¤@Ó¤@Ó¥h³]©w~¤@ª½¥X¿ù~©Ò¥H§Ú¥´ºâ§ï¨ìModule
µM«á¥ÎCallªº¤è¦¡©I¥s~¥i¬O·|¥X¿ù~¦bModuleªº¼gªk¬O§_¤]®t²§?
Option Explicit
Dim d As Object
Sub UFI()
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
Sub CBC()
If ComboBox1.ListIndex > -1 Then
ComboBox2.List = Split(d(ComboBox1.Value), ",")
ComboBox2.Value = ComboBox2.List(0)
End If
End Sub
§Ú§Q¥ÎCall©I¥sUFI©ÎCBC³£·|¥X¿ù~¥d¨ìÅܼưÝÃD~ |
|