- ©«¤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
|
¦^´_ 1# lieh_chun
§Anªº¬O¤£¬O³o¤äµ{¦¡¤º®e©Ò´yzªº¡H- Sub ExeSelf()
- timerEnabled = True
- Sheets("µ¦²¤°O¿ý").Cells(2, 1) = Now()
-
- On Error Resume Next
- If (TimeValue(Now) > TimeValue("13:46:01")) Then Exit Sub
-
- If (TimeValue(Now) >= TimeValue("08:45:00")) Then ' ¶}½L¡B¦¬½L®É¬q³]©w
- If IsError(Sheets("µ¦²¤°O¿ý").Range("B2").Value) Then ' °²³] B2 Äæ¦ì¬°¦hªÅ¤O¹D
- Cv(1) = 0
- Cv(2) = 0
- Cv(3) = 0
- Else
- Cv(1) = Sheets("µ¦²¤°O¿ý").Range("B2").Value ' ¦hªÅ¤O¹D¦¨¥æ»ù
- Cv(2) = Sheets("µ¦²¤°O¿ý").Range("C2").Value ' ¤Ï¦V¶Õ¤O¦¨¥æ»ù
- Cv(3) = Sheets("µ¦²¤°O¿ý").Range("D2").Value ' ¥D¤O±±½L¦¨¥æ»ù
- End If
-
- If (turnKey = 0 Or Ov(1) = 0) Then ' ·í turnKey Ȭ°0¡Aªí¥Ü¨ä¬°ªì©lȳ]©w¡C
- ' ¬°¦Ò¶q¨t²Îè³s¤WDDE¡A¦³®É¦b²Ä¤@®Ú¼ÆȲ£¥Í®ÉOv = CvÈ¥i¯à¬° 0 ªºª¬ºA)¡C
- Ov(1) = Cv(1) ' ¦hªÅ¤O¹D¶}½L»ùªì©lȳ]©w
- Hv(1) = Cv(1) ' ¦hªÅ¤O¹D³Ì°ª»ùªì©lȳ]©w
- Lv(1) = Cv(1) ' ¦hªÅ¤O¹D³Ì§C»ùªì©lȳ]©w
-
- Ov(2) = Cv(2) ' ¤Ï¦V¶Õ¤O¶}½L»ùªì©lȳ]©w
- Hv(2) = Cv(2) ' ¤Ï¦V¶Õ¤O³Ì°ª»ùªì©lȳ]©w
- Lv(2) = Cv(2) ' ¤Ï¦V¶Õ¤O³Ì§C»ùªì©lȳ]©w
-
- Ov(3) = Cv(3) ' ¥D¤O±±½L¶}½L»ùªì©lȳ]©w
- Hv(3) = Cv(3) ' ¥D¤O±±½L³Ì°ª»ùªì©lȳ]©w
- Lv(3) = Cv(3) ' ¥D¤O±±½L³Ì§C»ùªì©lȳ]©w
- End If
-
- turnKey = turnKey + 1
- Sheets("µ¦²¤°O¿ý").Cells(10, 2) = turnKey & " ¬í"
-
- If (Cv(1) > Hv(1)) Then Hv(1) = Cv(1) ' §PÂ_¦hªÅ¤O¹D³Ì°ª»ù
- If (Cv(2) > Hv(2)) Then Hv(2) = Cv(2) ' §PÂ_¤Ï¦V¶Õ¤O³Ì°ª»ù
- If (Cv(3) > Hv(3)) Then Hv(3) = Cv(3) ' §PÂ_¥D¤O±±½L³Ì°ª»ù
-
- If (Cv(1) < Lv(1)) Then Lv(1) = Cv(1) ' §PÂ_¦hªÅ¤O¹D³Ì§C»ù
- If (Cv(2) < Lv(2)) Then Lv(2) = Cv(2) ' §PÂ_¤Ï¦V¶Õ¤O³Ì§C»ù
- If (Cv(3) < Lv(3)) Then Lv(3) = Cv(3) ' §PÂ_¥D¤O±±½L³Ì§C»ù
-
- End If
-
- If (turnKey < nums) Then
- Application.OnTime (Now + TimeValue("00:00:01")), "ThisWorkbook.ExeSelf"
- Else
- If (Cv(1) <> 0) Then Call Timer
- ' Call Timer
- Call timerStart
- End If
- End Sub
½Æ»s¥N½X |
|