¨â¬q±ø¥ó¦¡Á`©M¿z¿ï(¤p¤k¤l¸÷¨Dµ{¦¡!!)
- ©«¤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
               
|
¥»©«³Ì«á¥Ñ Hsieh ©ó 2010-7-21 23:22 ½s¿è
¦^´_ 1# an13755
§A¥Ø«eBªíªº¼Æ¾Ú¬O§¹¾ãªº¶Ü?
¨Ì§Úªº²z¸Ñ§A¥ý¬Ý¬Ý- Sub nn()
- Set d = CreateObject("Scripting.Dictionary")
- Set d1 = CreateObject("Scripting.Dictionary")
- With Sheet36
- For k = 2 To 9
- For r = 2 To .Cells(65536, k).End(xlUp).Row
- d(.Cells(r, k).Value) = d(.Cells(r, k).Value) + .Cells(r, 10)
- If d(.Cells(r, k).Value) < 20 Then d1(.Cells(r, k).Value) = .Cells(r, "K")
- Next
- ar = d.keys
- ReDim ay(d1.Count)
- For i = 1 To d1.Count
- n = Application.Small(ar, i)
- ay(i - 1) = d1(n)
- Next
- With Sheet1
- .Columns(k + 8) = ""
- .Cells(1, k + 8).Resize(d1.Count, 1) = Application.Transpose(ay)
- End With
- d.RemoveAll
- d1.RemoveAll
- Next
- End With
- End Sub
½Æ»s¥N½X °õ¦æ«áµª®×¦bJ:QÄæ§A¤ñ¸û¬Ý¬Ý®t²§¦bþ? |
|
¾Ç®üµL²P_¤£®¢¤U°Ý
|
|
|
|
|
- ©«¤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
               
|
¦^´_ 4# an13755
06¦æ·|¥X¿ù?¤£·|§a
ì¨Ó¬On³o¼Ëªºµ²ªG,§Ú·|¿ù·N¤F- Sub nn()
- Dim Ar()
- Application.ScreenUpdating = False
- With Sheet36
- For k = 2 To 9
- s = 0: r = 2
- .Cells(1, k).CurrentRegion.Sort key1:=.Cells(1, k), Header:=xlYes
- cnt = .Cells(r, "J")
- While cnt < 20
- ReDim Preserve Ar(s)
- Ar(s) = .Cells(r, "K")
- s = s + 1: r = r + 1
- cnt = cnt + .Cells(r, "J")
- Wend
- With Sheet1
- .Columns(k + 8) = ""
- .Cells(1, k + 8).Resize(s, 1) = Application.Transpose(Ar)
- End With
- Erase Ar
- Next
- .[A1].CurrentRegion.Sort key1:=.[A1], Header:=xlYes
- End With
- Application.ScreenUpdating = True
- End Sub
½Æ»s¥N½X |
|
¾Ç®üµL²P_¤£®¢¤U°Ý
|
|
|
|
|