- ©«¤l
- 760
- ¥DÃD
- 250
- ºëµØ
- 0
- ¿n¤À
- 1023
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 11
- ³nÅ骩¥»
- OFFICE2021
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-5-30
- ³Ì«áµn¿ý
- 2024-11-28
|
¥»©«³Ì«á¥Ñ t8899 ©ó 2013-10-13 10:08 ½s¿è
¦^´_ t8899
¸Õ¸Õ¬Ý
GBKEE µoªí©ó 2013-10-12 16:25
ÁÂÁ«ü¾É,vb ¥¿¾Ç²ß·í¤¤¡A¦h¤éµL¤H¦^À³¡A¤p§Ì·Q¥XªºÂ²³æªº¤èªk,´£¨Ñ°Ñ¦Ò
Public Runtime
Sub a123()
If Range("U1").Value <> 1 Then
On Error Resume Next
Application.OnTime EarliestTime:=TimeValue(Runtime), _
Procedure:="a123", Schedule:=False
Cells(15, 9).Interior.ColorIndex = 2 '°h¥X¦â±mÁÙì
Range("u1").Value = 1
Range("z1").Value = 1
Exit Sub
On Error GoTo 0
End If
zzzzz
If Range("V14") = 1 Then mytime = "00:01:00"
If Range("V14") = 2 Then mytime = "00:02:00"
If Range("V14") = 3 Then mytime = "00:00:30"
If Range("V14") = 4 Then mytime = "00:00:15"
If Range("z1").Value = 1 Then
Cells(15, 9).Interior.ColorIndex = 8 '°õ¦æ¤¤Åܦâ
Runtime = Now + TimeValue(mytime)
Range("I15").Value = Format(Runtime, "hh:mm:ss")
Range("z1").Value = 2
Else
Runtime = Range("I15").Value + TimeValue(mytime)
Range("I15").Value = Format(Runtime, "hh:mm:ss")
End If
Application.OnTime Runtime, "Sheet6.a123"
End Sub |
|