- ©«¤l
- 60
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 64
- ÂI¦W
- 0
- §@·~¨t²Î
- w7-32
- ³nÅ骩¥»
- 2013.2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2014-11-23
- ³Ì«áµn¿ý
- 2016-6-6
|
¦¬¶°¤F¤@Ó¨ä¾l½Ð¦Û¦æÂX¥R·d©w- Private Sub UserForm_Initialize()
- Dim A As Range
- ComboBox1.Clear
- Set d = CreateObject("Scripting.Dictionary")
- With Sheets("¤u§@ªí1")
- .Activate
- For Each A In .Range("A2", .[A2].End(xlDown))
- d(A.Value) = IIf(d(A.Value) = "", A.Offset(, 2).Value, d(A.Value) & "," & A.Offset(, 2))
- Next
- ComboBox1.List = d.keys
- End With
- ComboBox1.Value = "¿ï¨ú"
- End Sub
- Private Sub CommandButton1_Click()
- Sheets("¤u§@ªí1").AutoFilterMode = False
- kx = ComboBox1.Value
- With Sheets("¤u§@ªí1")
- If kx <> "¿ï¨ú" And kx <> "" Then .UsedRange.AutoFilter Field:=1, Criteria1:=kx
- Sheets("¤u§@ªí2").Cells.Clear
- .UsedRange.Copy Sheets("¤u§@ªí2").Range("A1")
- End With
- Sheets("¤u§@ªí1").AutoFilterMode = False
- End Sub
½Æ»s¥N½X
|
|