- ©«¤l
- 2834
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2890
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-26
|
¦^´_ 61# PJChen
Sub ²z³f±Æ§Ç()
Dim R&, xR As Range, xH As Range, C%, V&
R = Cells(Rows.Count, "K").End(xlUp).Row
If R <= 2 Then Exit Sub
Application.ScreenUpdating = False
For Each xR In Range("K2:K" & R)
If xR = "«~¦W" Then Set xH = xR(2): C = 1: V = 0: GoTo 101
V = V + Val(xR(1, -4))
If xR = "¦Xp" Then
If C = 0 Or V = 0 Then GoTo 101
Range(xH(1, -4), xR(0, -4)).Replace "", "ZZ", Lookat:=xlWhole '±NªÅ¦r²Å¨ú¥N¬°"ZZ"
With Range(Rows(xH.Row), Rows(xR(0).Row))
.Sort Key1:=.Cells(1, "F"), Order1:=xlAscending, _
Key2:=.Cells(1, "L"), Order2:=xlAscending, Header:=xlNo
End With
Range(xH(1, -4), xR(0, -4)).Replace "ZZ", "", Lookat:=xlWhole '±N"ZZ¨ú¥N¬°ªÅ
C = 0: V = 0
End If
101: Next
End Sub
FÄ榳ªÅ¦r²Å""¦b°µ©Ç, ¾ÉP±Æ§Ç°ÝÃD, ¥Î"¨ú¥N"¸Ñ¨M, YFÄ欰¤½¦¡, «Ü³Â·Ð~~ |
|