- ©«¤l
- 181
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 197
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- 2000
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2014-3-9
- ³Ì«áµn¿ý
- 2024-4-29
|
¥»©«³Ì«á¥Ñ bobomi ©ó 2015-4-5 15:01 ½s¿è
[ ¥¦¬O°õ¦æ¨ì¨º¤@¦æ³Q°±¤îªº??¦p¦ó½T»{¥¦¤w³Q°±¤î¤F?? ]
À³¸Ó¬On¶i¤J Sub timestock() ¤§«e, Application.OnTime ´N¦Û°Ê¦P®É Stop ¤F, °õ¦æ¦b¤º³¡©Ò¥H§A¬Ý¤£¨£
°õ¦æ Sub Test_01
¨BÆJ (2) ¯à¦¨¥\ , ¨BÆJ (3) «o¥¢±Ñ
´N¥i¥Hª¾¹D·í Application.OnTime Time + 1 / 86400, "AAA", , False ' °õ¦æ ¥¢±Ñ®É(µo¥X Error Msg ®É)
´N¥NªíµÛ Timer For Sub AAA ¦¤w¸g°±¤î¤F
¦]¬°¨BÆJ (2) ¤w¸g¦¨¥\°±¤î¤F Timer For Sub AAA
©Ò¥H¨BÆJ (3) §A¦A°±¤î1¦¸´N¥¢±Ñ¤F , ¦¹®É Application.OnTime ¤º³¡¦´N¨S¦³ Timer For Sub AAA ³o±ø Link , Application.OnTime ¦]¬°§ä¤£¨ì Timer For Sub AAA ¦Óµo¥X Error Msg
Sub Test_01()
On Error GoTo 0: On Error Resume Next
Application.OnTime Time + 1 / 86400, "AAA", , True '(1)--> °õ¦æ ok
If Err Then MsgBox "err #1"
On Error GoTo 0: On Error Resume Next
Application.OnTime Time + 1 / 86400, "AAA", , False '(2)--> °õ¦æ ok (Timer For Sub AAA ¤w¸g°±¤î)
If Err Then MsgBox "err #2"
On Error GoTo 0: On Error Resume Next
Application.OnTime Time + 1 / 86400, "AAA", , False '(3)--> °õ¦æ ¥¢±Ñ
If Err Then MsgBox "err #3"
End Sub |
|