- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 255
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-25
|
¦^´_ 1# stephen - Sub ex()
- Set d = CreateObject("Scripting.Dictionary")
- r = 2
- Do Until Cells(r, 2) = ""
- ar = IIf(InStr(Cells(r, 3), "arr"), Cells(r, 3), ar)
- k = Val(Replace(ar, "arr ", ""))
- If IsEmpty(d(k)) Then Set d(k) = Cells(r, 1).Resize(, 5) Else Set d(k) = Union(d(k), Cells(r, 1).Resize(, 5))
- r = r + 1
- Loop
- [H:L].Clear
- [H1] = "´Á±æµ²ªG"
- s = 1
- For i = 1 To d.Count
- d(i).Copy [H1].Offset(s)
- [H1].Offset(s).Resize(d(i).Rows.Count, 3).Sort key1:=[H1].Offset(s, 1), key2:=[H1].Offset(s), Header:=xlYes
- s = s + d(i).Rows.Count
- Next
- End Sub
½Æ»s¥N½X |
|