- ©«¤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
|
¦^´_ 31# PJChen
Sub qÁʼÆ_²M°£()
Dim R&, xR As Range, xH As Range, C%
R = Cells(Rows.Count, "K").End(xlUp).Row
If R <= 2 Then Exit Sub
For Each xR In Range("K2:K" & R)
If xR = "«~¦W" Then Set xH = xR(2): C = 1: GoTo 101
If xR = "¦Xp" Then
If C = 0 Then GoTo 101
Range(xH(1, 7), xR(0, 7)).ClearContents
C = 0
End If
101: Next
End Sub
Sub ¤¹¦¬¤é_¤½¦¡()
Dim R&, xR As Range, xH As Range, C%, Fx$(1 To 3), j%
R = Cells(Rows.Count, "K").End(xlUp).Row
If R <= 2 Then Exit Sub
Fx(1) = "=IF(J3="""","""",J3-U3)"
Fx(2) = "=IF(J3="""","""",""~"")"
Fx(3) = "=IF(N(B$_X)*LEN(K3)*N(T3)*N(U3)=0,"""",B$_X+T3-1)"
For Each xR In Range("K2:K" & R)
If xR = "«~¦W" Then Set xH = xR(2, -2): C = 1: GoTo 101
If xR = "¦Xp" Then
If C = 0 Then GoTo 101
For j = 1 To 3
Range(xH(1, j), xR(0, -3 + j)) = Replace(Replace(Fx(j), 3, xH.Row), "_X", xH.Row - 2)
Next j
C = 0
End If
101: Next
End Sub
Sub ¤¹¦¬¤é_²M°£()
Dim R&, xR As Range, xH As Range, C%
R = Cells(Rows.Count, "K").End(xlUp).Row
If R <= 2 Then Exit Sub
For Each xR In Range("K2:K" & R)
If xR = "«~¦W" Then Set xH = xR(2, -2): C = 1: GoTo 101
If xR = "¦Xp" Then
If C = 0 Then GoTo 101
Range(xH, xR(0, 0)).ClearContents
C = 0
End If
101: Next
End Sub
'================================== |
|