- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 97
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2025-4-22
               
|
¥»©«³Ì«á¥Ñ Hsieh ©ó 2014-7-25 10:59 ½s¿è
¦^´_ 1# Duck
¤£«½Æ©w¸q¬O§_B&D¤£«½Æ?
¦pªG¬Oªº¸Ü
´¡¤J¦Ûqªí³æ¡A¥¬¸m¤@Ó¤U©Ô²M³æ
ªí³æ¼Ò²Õ¤¤µ{¦¡½X¦p¤U- Private Sub ComboBox1_Change()
- Set d = CreateObject("Scripting.Dictionary")
- With ¤u§@ªí2
- Set Rng = ¤u§@ªí2.[A1]
- .[A:E].Clear
- With ¤u§@ªí1
- With .Range("A1").CurrentRegion
- .AutoFilter 4, ComboBox1
- .SpecialCells(xlCellTypeVisible).Copy Rng
- .AutoFilter
- End With
- End With
- mystr = "=COUNTIF(C5,RC9)/(COUNTA(C7)-1)"
- For Each a In .Range(.[B2], .[B1].End(xlDown))
- d(a & a.Offset(, 3)) = Array(a, "", a.Offset(, 3))
- Next
- .Range("G1").CurrentRegion.Offset(1).ClearContents
- .[G2].Resize(d.Count, 3) = Application.Transpose(Application.Transpose(d.items))
- .[J2].Resize(d.Count, 1).FormulaR1C1 = mystr
- .[H2] = d.Count
- End With
- Unload Me
- End Sub
- Private Sub UserForm_Initialize()
- Set d = CreateObject("Scripting.Dictionary")
- With ¤u§@ªí1
- For Each a In .Range(.[D2], .[D2].End(xlDown))
- d(a.Text) = ""
- Next
- End With
- ComboBox1.List = d.keys
- End Sub
½Æ»s¥N½X
¤W¶Ç¥Î.zip (28.34 KB)
|
|