½Ð°Ý°ª¤ân±N¥H¤UDDE ¨C¤ÀÄÁ°O¿ý§ï¬°30¬í¦Û°Ê°O¿ý¤@¦¸n«ç§ï
- ©«¤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
|
½Ð°Ý°ª¤ân±N¥H¤UDDE ¨C¤ÀÄÁ°O¿ý§ï¬°30¬í¦Û°Ê°O¿ý¤@¦¸n«ç§ï
§Ú¹ïVBA³£¤£À´¦bºô¤W§ä¦n¤[§ä¨ì¤@Ó¤ñ¸û±µªñ§Únªº½d¨Ò
¥i¬O¥L¬O¨C¤ÀÄÁ°O¿ý¤@¦¸
¥i¥H½Ð°ª¤âÀ°§Ú§ï¨C30¬í´N°O¿ý¤@¦¸¶Ü
¤]ÁÂÁ³o¦ì´£¨Ñ½d¨Òªººô¤Í
Option Explicit
Dim LastMin As Integer
Private Sub Workbook_Open()
Sheets("µ¦²¤°O¿ý").Cells(4, 2) = 10
LastMin = Minute(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 Minute(Time) <> LastMin 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 = Minute(Time)
End If
End Sub |
|
|
|
|
|
|
- ©«¤l
- 13
- ¥DÃD
- 0
- ºëµØ
- 0
- ¿n¤À
- 13
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- pro
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2015-8-1
- ³Ì«áµn¿ý
- 2018-4-6
|
¦^´_ 131# fei6999
¥h¸Ë¤¸¤jRTD¡F ¥¦ªº½d¨ÒÀÉ´N¦³¡F ¥un¦³RTD(¥i§â¥¦¬Ý¦¨DDE)¡A ¦A¨Ó´N¬Oµ{¦¡ªº°ÝÃD¤F |
|
|
|
|
|
|
- ©«¤l
- 41
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 79
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- OFFICE 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2011-3-8
- ³Ì«áµn¿ý
- 2022-4-16
|
¦^´_ 130# mlc994800
¤¸¤jdde³£¦³´£¨Ñ½d¨Ò!º¦¶^®a¼ÆÀ³¸Ó¦³¤~¹ï
|
|
|
|
|
|
|
- ©«¤l
- 1
- ¥DÃD
- 0
- ºëµØ
- 0
- ¿n¤À
- 1
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- OFFICE2010
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2016-7-8
- ³Ì«áµn¿ý
- 2016-8-19
|
·Q½Ð°Ý¦pªG·Qn¤@¶}½L´N¥ý§â¬Q¤Ñ¨C30¬í°O¿ýªº¸ê®Æ²¾°£,À³¸Ón¦A¸É¤W«ç¼Ëªºµ{¦¡½X©O??
¥t¥~,·Q½Ð°Ý¤@¤U,¦³¨Ç·Qª¾¹Dªº¸ê°T¦pªGÃÒ¨÷°Ó¨S¦³¨ºÓ«~¶µªº¥N½X¬O¤£¬O´NµLªk¨ú±o©O?
Ä´¦p:¤j½Lªºº¦¶^®a¼Æ..etc. |
|
|
|
|
|
|
- ©«¤l
- 2
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 3
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOWS7
- ³nÅ骩¥»
- 64
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2016-6-25
- ³Ì«áµn¿ý
- 2016-10-14
|
¤Ó´Î©Ô ³o¸Ì²×©ó§ä¨ì§ÚnªºªF¦è »Å®@:D |
|
¤p¯Î
|
|
|
|
|
- ©«¤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
|
¦^´_ 127# areskevin - Option Explicit
- Dim LastMin As String
- Private Sub Workbook_Open()
- LastMin = "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 As Long, HHMM As Integer, col As Variant
-
- With Sheets("¨C¤À°O¿ý")
- HHMM = Hour(Now) * 100 + Minute(Now)
- If (HHMM < 900 Or HHMM > 1333) Then Exit Sub
-
- .Cells(2, 4) = Now
- Set col = Range(.Range("A5"), .Cells(5, .[A4].End(xlToRight).Column)).Find(Format(.Cells(2, 4), "M/D"), LookIn:=xlValues, LookAt:=xlWhole)
- Pos = .Cells(Rows.Count, col.Column - 1).End(xlUp).Row + 1 ' §¡¥H¨ä¬Û¹ïÀ³¤§·í¤é (col) ¬°°ò·Ç (Pos = 6 : Long)
- ' Pos = .Range("A" & Rows.Count).End(xlUp).Row + 1
- .Cells(Pos, col.Column - 1) = Format(.Cells(2, 4), "HH:MM:SS")
- .Cells(Pos, col.Column) = .Cells(2, 2)
- .Cells(Pos, col.Column + 1) = .Cells(2, 3)
- End With
-
- Application.OnTime Now + TimeValue(LastMin), "ThisWorkbook.Timer"
- ' Application.OnTime Now + TimeValue("00:01:00"), "ThisWorkbook.Timer"
- End Sub
½Æ»s¥N½X ¦¬¦¬ Mail¡I
|
|
|
|
|
|
|
- ©«¤l
- 3
- ¥DÃD
- 0
- ºëµØ
- 0
- ¿n¤À
- 2
- ÂI¦W
- 0
- §@·~¨t²Î
- W10
- ³nÅ骩¥»
- OFFICE2010
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2016-6-21
- ³Ì«áµn¿ý
- 2016-6-30
|
¦^´_ 126# c_c_lai
c_c_lai¤j±z¦n^^
èè¹Á¸Õ¤F¤@¤U
§âµ{§Ç¥[¤J
ÁÙ¬OµLªk¸õ°Ê
½Ð°Ý¦pªG¬Û¦P»yªk¼g¤J¦b2013ªºexcel¤]¥i¥H¶Ü¡H
¥t¥~¦]¬°§ÚµLªk¤U¸üªþ¥ó¡A
¯à§_³Â·Ð±z§âªþ¥ó±H°eµ¹§Ú©O¡H
[email protected]
§Æ±æ¦³´Â¤@¤é¯à¸òc_c_lai¤j¤@¼Ë
¯à¦^´_¥L¤Hªº°ÝÃD
¸U¤À·PÁ |
|
|
|
|
|
|
- ©«¤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
|
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 120# areskevin
¬°¤FÅý§A¯à¹ê»ÚÁA¸Ñ "¨C¤À°O¿ý" ªº¹ê°È¼¶¼g¡A
°µ¤F¦¹À³¥Î½d¨Ò¡A´£¨Ñ§A±o¥H¥þ½L©úÁA
¦p¦ó¥h¹ê»Ú±±¨î¨C¤ë¨C¤éªº¯u¹ê¾Þ½L¬ö¿ý¼g¤J
¨Ã¦A§A쥻ªººc·Q¦Ó¾ã²z¥X¨Ó¤§µ{¦¡¹ê»Ú
À³¥Î½d¨Ò¡A§Æ±æ§AÂǦ¹¯àÁ|¤@¤Ï¤T¥[¥Hµo´§¡C
- Public Sub Timer()
- Dim Pos As Long, HHMM As Integer, col As Variant
-
- With Sheets("¨C¤À°O¿ý")
- HHMM = Hour(Now) * 100 + Minute(Now)
- If (HHMM < 900 Or HHMM > 1333) Then Exit Sub
-
- .Cells(2, 4) = Now
- ' Set col = Range(.Range("A5"), .Cells(5, .[A5].End(xlToRight).Column)).Find(Format(.Cells(2, 4), "M/D"), LookIn:=xlValues, LookAt:=xlWhole)
- ' Sheets("¨C¤À°O¿ý").[A4].End(xlToRight).Column = 15 : Variant/Long
- ' Sheets("¨C¤À°O¿ý").[A5].End(xlToRight).Column = 2 : Variant/Long (¦X¨ÖÀx¦s®æ©ö³y¦¨ End(xlToRight).Column §PÂ_¿ù»~)
- Set col = Range(.Range("A5"), .Cells(5, .[A4].End(xlToRight).Column)).Find(Format(.Cells(2, 4), "M/D"), LookIn:=xlValues, LookAt:=xlWhole)
- Pos = .Cells(Rows.Count, col.Column - 1).End(xlUp).Row + 1 ' §¡¥H¨ä¬Û¹ïÀ³¤§·í¤é (col) ¬°°ò·Ç
- ' Pos = .Range("A" & Rows.Count).End(xlUp).Row + 1
- .Cells(Pos, col.Column - 1) = Format(.Cells(2, 4), "HH:MM:SS")
- .Cells(Pos, col.Column) = .Cells(2, 2)
- .Cells(Pos, col.Column + 1) = .Cells(2, 3)
- End With
-
- ' Application.OnTime Now + TimeValue(LastMin), "ThisWorkbook.Timer"
- Application.OnTime Now + TimeValue("00:01:00"), "ThisWorkbook.Timer"
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 120# areskevin
- Public Sub Timer()
- Dim Pos As Long, HHMM As Integer, col As Variant
-
- With Sheets("¨C¤À°O¿ý")
- HHMM = Hour(Now) * 100 + Minute(Now)
- If (HHMM < 900 Or HHMM > 1333) Then Exit Sub
-
- .Cells(2, 4) = Now
- ' Time 6/21 6/21 6/22 6/22 6/23 6/23 6/24 6/24 6/25 6/25
- Set col = Range(.Range("A5"), .Cells(5, .[A5].End(xlToRight).Column)).Find(Format(.Cells(2, 4), "M/D"), LookIn:=xlValues, LookAt:=xlWhole)
- Pos = .Range("A" & Rows.Count).End(xlUp).Row + 1
- .Cells(Pos, 1) = Format(.Cells(2, 4), "HH:MM:SS")
- .Cells(Pos, col.Column) = .Cells(2, 2)
- .Cells(Pos, col.Column + 1) = .Cells(2, 3)
- End With
-
- ' Application.OnTime Now + TimeValue(LastMin), "ThisWorkbook.Timer"
- Application.OnTime Now + TimeValue("00:01:00"), "ThisWorkbook.Timer"
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|