- ©«¤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-23
|
- Sub Âà¥X¸ê®Æ()
- Dim R&, xR As Range, xE As Range, N&
- If [¤u§@ªí1!A2] = "" Then MsgBox "**©|¥¼¶ñ¤J¦WºÙ! ": Exit Sub
- R = [¤u§@ªí1!B65536].End(xlUp).Row - 1
- If Application.Sum([¤u§@ªí1!D2].Resize(R)) = 0 Then
- MsgBox "**©|¥¼¶ñ¤J¼Æ¶q! ": Exit Sub
- End If
- [¤u§@ªí2!B6:F200].ClearContents
- [¤u§@ªí2!B2] = [¤u§@ªí1!A2]
- For Each xR In [¤u§@ªí1!B2].Resize(R)
- If Val(xR(1, 3)) = 0 Then GoTo 101
- N = N + 1
- [¤u§@ªí2!B5:F5].Offset(N, 0) = xR.Resize(, 5).Value
- '----------------------------
- Set xE = [¤u§@ªí3!D65536].End(xlUp)(2, -1)
- If N = 1 Then xE(1, 0) = [¤u§@ªí1!A2]
- xE.Resize(, 5) = xR.Resize(, 5).Value
- 101: Next
- With [¤u§@ªí1!D2].Resize(R)
- .Copy [¤u§@ªí1!H2] '¼Æ¶q¶K¦Ü³Æ¦s°Ï, ¥H¨Ñ°Ñ¦Ò
- .ClearContents '²MªÅ¼Æ¶q, «Ý¤U¦¸«·s¿é¤J
- End With
- [¤u§@ªí1!A2] = "" '²MªÅ¦WºÙ, «Ý¤U¦¸«·s¿é¤J
- [¤u§@ªí1!i2] = Date: [¤u§@ªí1!i3] = Time '°O¿ýÂà¥X¤é´Á®É¶¡
- End Sub
½Æ»s¥N½X
Xl0000100.rar (16.61 KB)
'========================= |
|