½Ð°Ý°ª¤ân±N¥H¤UDDE ¨C¤ÀÄÁ°O¿ý§ï¬°30¬í¦Û°Ê°O¿ý¤@¦¸n«ç§ï
- ©«¤l
- 48
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 64
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office 2000
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- TAIPEI
- µù¥U®É¶¡
- 2011-4-16
- ³Ì«áµn¿ý
- 2018-9-26
|
¥»©«³Ì«á¥Ñ a8350070 ©ó 2012-5-26 11:04 ½s¿è
¸ÕµÛ¦bÅÜ°Ê´T«×³Ì¤pªº«e´£¤Uקï
Option Explicit
Dim LastMin As Long
Private Sub Workbook_Open()
Sheets("µ¦²¤°O¿ý").Cells(4, 2) = 10
LastMin = Hour(Time) * 3600 + Minute(Time) * 60 + Second(Time)
Call Timer
End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
On Error Resume Next
Application.OnTime Now + TimeValue("00:00:01"), "ThisWorkbook.Timer", , False
End Sub
Public Sub Timer()
Dim Pos As Integer, i As Integer, RangeStr As String
On Error Resume Next
Application.OnTime Now + TimeValue("00:00:01"), "ThisWorkbook.Timer" '¨C¬íÅã¥Ü
Sheets("µ¦²¤°O¿ý").Cells(3, 2) = Time '±N®É¶¡show¦Üµ¦²¤ªºb3Äæ¦ì
Dim HHMM As Integer
HHMM = Hour(Time) * 100 + Minute(Time)
If (HHMM < 845 Or HHMM > 1345) Then Exit Sub 'Àç·~®É¶¡¤~°õ¦æ
If Hour(Time) * 3600 + Minute(Time) * 60 + Second(Time) > LastMin + 30 Then '¶}©l«á°µ
With Sheets("µ¦²¤°O¿ý")
.Cells(4, 2) = .Cells(4, 2) + 1 '±NÅܰʦ渹¥[¤@¦æ
Pos = .Cells(4, 2)
.Cells(Pos, 1) = Time
.Cells(Pos, 2) = .Cells(2, 2)
.Cells(Pos, 3) = .Cells(2, 3)
.Cells(Pos, 4) = .Cells(2, 4)
.Cells(Pos, 5) = .Cells(2, 5)
.Cells(Pos, 6) = .Cells(2, 6)
.Cells(Pos, 7) = .Cells(2, 7)
.Cells(Pos, 8) = .Cells(2, 8)
.Cells(Pos, 9) = .Cells(2, 9)
.Cells(Pos, 10) = .Cells(2, 10)
End With
LastMin = Hour(Time) * 3600 + Minute(Time) * 60 + Second(Time)
End If
End Sub |
|
My Blog
http://blog.xuite.net/a8350070
|
|
|
|
|
- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¦^´_ 9# xu123
- Option Explicit
- Dim LastMin As String ' §ó§ï¬°¶¡¹j®É¬q³]©w
- Private Sub Workbook_Open()
- Sheets("µ¦²¤°O¿ý").Cells(4, 2) = 10 ' «O¯d§A¤§«eªº³]©w¡A¨C¦¸¤@¶}±ÒExcel³£«·s¶}©l
- LastMin = "00:00:30" ' ¨C¹j 30 ¬íªº®É¬q³]©w¡C¦p»Ý¥H¤@¤ÀÄÁ°µ³Bù¡A«h½Ð×¥¿¬° "00:01:00"
-
- Call Timer
- End Sub
- Private Sub Workbook_BeforeClose(Cancel As Boolean)
- On Error Resume Next
- Application.OnTime Now + TimeValue("00:00:01"), "ThisWorkbook.Timer", , False
- End Sub
- Public Sub Timer()
- Dim Pos, i, HHMM As Integer, RangeStr As String
-
- On Error Resume Next
- Sheets("µ¦²¤°O¿ý").Cells(3, 2) = Time '±N®É¶¡show¦Üµ¦²¤ªºb3Äæ¦ì
-
- HHMM = Hour(Time) * 100 + Minute(Time)
- If (HHMM < 845 Or HHMM > 1345) Then Exit Sub 'Àç·~®É¶¡¤~°õ¦æ
-
- With Sheets("µ¦²¤°O¿ý")
- .Cells(4, 2) = .Cells(4, 2) + 1 '±NÅܰʦ渹¥[¤@¦æ
- Pos = .Cells(4, 2)
- .Cells(Pos, 1) = Time
- .Cells(Pos, 2) = .Cells(2, 2)
- .Cells(Pos, 3) = .Cells(2, 3)
- .Cells(Pos, 4) = .Cells(2, 4)
- .Cells(Pos, 5) = .Cells(2, 5)
- .Cells(Pos, 6) = .Cells(2, 6)
- .Cells(Pos, 7) = .Cells(2, 7)
- .Cells(Pos, 8) = .Cells(2, 8)
- .Cells(Pos, 9) = .Cells(2, 9)
- .Cells(Pos, 10) = .Cells(2, 10)
- End With
-
- Application.OnTime Now + TimeValue(LastMin), "ThisWorkbook.Timer" ' ¨C LastMin °õ¦æ¤@¦¸
- End Sub
½Æ»s¥N½X ¯¬¬P´Á°²¤é´r§Ö¡I
¦Û°Ê°O¿ý¨C¤ÀÄÁ©e¶R½æ§¡È-½d¨Ò.rar (12.31 KB)
|
|
|
|
|
|
|
- ©«¤l
- 48
- ¥DÃD
- 14
- ºëµØ
- 0
- ¿n¤À
- 62
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-5-25
- ³Ì«áµn¿ý
- 2022-4-23
|
´ú¸Õ¥i¥H¨Ï¥Î¤F
ÁÂÁÂa8350070 ©Mc_c_lai
§A̯uªº«Ü¼ö¤ß |
|
|
|
|
|
|
- ©«¤l
- 4
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 12
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2012-4-4
- ³Ì«áµn¿ý
- 2017-3-6
|
ªì¨Ó¨ì³o¸Ì ¯u¬O°ª¤â¦p¶³
¬Ý¨Ó¥i±o¦n¦n¾Ç²ß¤F |
|
|
|
|
|
|
- ©«¤l
- 44
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 78
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN XP
- ³nÅ骩¥»
- SP3
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- taipei
- µù¥U®É¶¡
- 2012-5-4
- ³Ì«áµn¿ý
- 2014-4-24
|
·PÁÂc_c_lai ¤j³o»ò¸Ô²Ó¥Î¤ßªº¸Ñ»¡ |
|
|
|
|
|
|
- ©«¤l
- 44
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 78
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN XP
- ³nÅ骩¥»
- SP3
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- taipei
- µù¥U®É¶¡
- 2012-5-4
- ³Ì«áµn¿ý
- 2014-4-24
|
ÁÂÁÂa8350070 ©Mc_c_lai ¥Î¤ßªº¸Ñ»¡ |
|
stock
|
|
|
|
|
- ©«¤l
- 51
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 59
- ÂI¦W
- 0
- §@·~¨t²Î
- VISTA
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-4-1
- ³Ì«áµn¿ý
- 2018-5-17
|
¥»©«³Ì«á¥Ñ mead ©ó 2012-6-24 10:34 ½s¿è
¸ÕµÛ¦bÅÜ°Ê´T«×³Ì¤pªº«e´£¤Uקï
Option Explicit
Dim LastMin As Long
Private Sub Workbook_Open ...
a8350070 µoªí©ó 2012-5-26 11:03
If Hour(Time) * 3600 + Minute(Time) * 60 + Second(Time) > LastMin + 30 Then '¶}©l«á°µ
³o¼Ë§ï ¨än°O¿ýªº®É¶¡³]©wn´î1
¦p30¬í ´Nn¥[29¦Ó«D30 |
|
|
|
|
|
|
- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¥»©«³Ì«á¥Ñ c_c_lai ©ó 2012-6-25 08:42 ½s¿è
¦^´_ 17# mead
ªþ¤W¤@Ó¥i¥HÀH§A»Ý¨D²§°Êªº "¦Û°Ê°O¿ý¨C¤ÀÄÁ©e¶R½æ§¡È"¡A
¥H«á§A´N¨S¦³·Ð´oªº¨Æ¤F¡I
¦Û°Ê°O¿ý¨C¤ÀÄÁ©e¶R½æ§¡È.rar (13.96 KB)
P.S. ½Ð±N Time() ¸Ìªº .Cells(21, 2).Offset(0).Resize(, 9) = .[B12:J12].Value
§ó§ï¦¨ .Cells(Pos, 2).Offset(0).Resize(, 9) = .[B2:J2].Value |
|
|
|
|
|
|
- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¥»©«³Ì«á¥Ñ c_c_lai ©ó 2012-6-25 17:34 ½s¿è
¦^´_ 19# mead
§ä¨ì¤F¡A¤w E-Mail ¹L¥h¤F¡I |
|
|
|
|
|
|
- ©«¤l
- 44
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 78
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN XP
- ³nÅ骩¥»
- SP3
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- taipei
- µù¥U®É¶¡
- 2012-5-4
- ³Ì«áµn¿ý
- 2014-4-24
|
¦^´_ 20# c_c_lai
c_c_lai ¤j¤j,§Ú¤]»Ýn³oÓÀÉ®×,¦]Åv¤£¨¬µLªk¤U¸ü
¥i§_±H¨ì§Úªº«H½c,·PÁ¼ö¤ß¤À¨É |
|
stock
|
|
|
|
|