- ©«¤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-21
|
Sub ³vµ§°O¿ý()
Dim DSht As Worksheet, dEnd As Range
On Error GoTo 999
Set DSht = ThisWorkbook.Sheets(uRng.Text)
With DSht
¡@¡@.[B1] = uRng: .[D1] = uRng(1, 2): .[E1] = ""
¡@¡@Set dEnd = DSht.[A65536].End(xlUp)(2)
¡@¡@If dEnd.Row < 3 Then Set dEnd = DSht.[A3]
¡@¡@If dEnd(0, 5) = uRng(1, 7) Then Exit Sub¡@¡@'¥[¤J³o¤@¦æ¡A·í¦¨¥æ¶q¥¼ÅÜ°Ê¡A¤£°O¿ý¡I¡I¡I¡@
¡@¡@dEnd.Resize(1, 5) = uRng(1, 3).Resize(1, 5).Value
¡@¡@If dEnd.Row > 3 Then dEnd(1, 6) = dEnd(1, 5) - dEnd(0, 5)
¡@¡@dEnd(1, 7).Value = CDate(Date + uTime)
End With
999: End Sub |
|