- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 81
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2025-4-5
               
|
¦^´_ 3# b9208
ªþ¥ó¤º¼Ï¯Ã¤ÀªRªí¤èªk¨Ñ§A°Ñ¦Ò
H1_²Îp.rar (16.29 KB)
- Private Sub CommandButton1_Click()
- Set d = CreateObject("Scripting.Dictionary")
- Set d1 = CreateObject("Scripting.Dictionary")
- Set d2 = CreateObject("Scripting.Dictionary")
- With Sheet3
- For Each a In .Range(.[B6], .[B65536].End(xlUp))
- ar = Array(a, a.Offset(, 2), a.Offset(, 3), "")
- d(a.Offset(, 3).Value) = d(a.Offset(, 3).Value) + 1
- ar(3) = d(a.Offset(, 3).Value)
- d1(a.Offset(, 3).Value) = ar
- d2(a.Value) = d2(a.Value) + 1
- Next
- End With
- With Sheets("²Îpªí")
- .[B7:F65536] = ""
- .[B7].Resize(d1.Count, 4) = Application.Transpose(Application.Transpose(d1.items))
- .[B6].Resize(d1.Count + 1, 4).Sort key1:=.[B7], key2:=.[C7], header:=xlYes
- .[G7:H65536] = ""
- .[G7].Resize(d2.Count, 1) = Application.Transpose(d2.keys)
- .[H7].Resize(d2.Count, 1) = Application.Transpose(d2.items)
- .[G6].Resize(d2.Count + 1, 2).Sort key1:=.[G7], header:=xlYes
- .Select
- End With
- End Sub
½Æ»s¥N½X |
|