- ©«¤l
- 365
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 406
- ÂI¦W
- 0
- §@·~¨t²Î
- Win 7
- ³nÅ骩¥»
- OFFICE 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2012-12-11
- ³Ì«áµn¿ý
- 2024-8-24
|
¦^´_ 92# c_c_lai
Sub ®É¶¡()
Sheets("RTD").Cells(2, 1) = WorksheetFunction.Text(Now(), "hh:mm:ss")-------------³oÓ¦a¤è®É¶¡¤£¥Î¼g¤J
Application.OnTime Now() + TimeValue("00:00¡G01"), "®É¶¡"
End Sub
---------------------------------------------------------------------------------------------------------------------------
Sub RecordPrice(TG As Range)
Dim WR As Long, cts As Long
With Sheets("RTD")
If .Range("A1") < 1 Then Exit Sub
cts = TG.Column
WR = .Cells(Rows.Count, cts).End(xlUp).Row + 1 ' ¨D¨ú¸Ó²§°ÊÄæ¦ìªº³Ì«á¤@µ§¬ö¿ý¦C¦ì¸m
If WR = 3 Or .Cells(WR - 1, cts) <> .Cells(2, cts) Then
.Cells(WR, cts).Offset(, -3).NumberFormatLocal = "hh:mm:ss" ' ³]©wÀx¦s®æ®æ¦¡ (®É¶¡)----------------³oÓ¦a¤èªº¥\¯à¬O??¦³®É¶¡ªº³¡¤À¥i¥H³£®³±¼¶Ü??
.Cells(WR, cts).Offset(, -2).Resize(, 3) = .Range(TG.Address).Offset(, -2).Resize(, 3).Value
End If
End With
End Sub |
|