ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ½Ð±Ð¦¹µ{§Ç¦p¦ó§ó§ï?

[µo°Ý] ½Ð±Ð¦¹µ{§Ç¦p¦ó§ó§ï?

¼È°±10¬í¡AÄ~Äò°õ¦æ¤U¤@¦æ
DSTOP = Now: Do While Now - DSTOP < TimeValue("0:00:10"): DoEvents: Loop

TimeValue("0:00:10") ·Q¥Ñ [a1]ªº­È¥N´À
[a1]=1 «h¬°1¬í
[a1]=2 «h¬°2¬í
Ãþ±À
............
.....

¼È°±¡H¬í¡A
¦³ Wait ¤Î Sleep ¤èªk¡A¥iºô¤W§ä¤@¤U¡F
¥u¬O¦]¡e¼È°±¡f¥Øªº¤£¦P¡A¤£¤@©w¾A¥Î¡C

TOP

¥»©«³Ì«á¥Ñ t8899 ©ó 2015-1-17 13:57 ½s¿è
¼È°±¡H¬í¡A
¦³ Wait ¤Î Sleep ¤èªk¡A¥iºô¤W§ä¤@¤U¡F
¥u¬O¦]¡e¼È°±¡f¥Øªº¤£¦P¡A¤£¤@©w¾A¥Î¡C
­ã´£³¡ªL µoªí©ó 2015-1-17 11:36

§Ú§ä¨ìDateAdd¤èªk
Sub test()
timeie = DateAdd("s", [a1], Now) '[a1]¬°¬í¼Æ¡A©Îª½±µ¿é¤J¬í¼Æ timeie = DateAdd("s", 10, Now)
Do While timeie > Now
DoEvents
Loop
MsgBox "ddddddddddd"
End Sub

TOP

        ÀR«ä¦Û¦b : ¡i¬O§_µo´§¤F¨}¯à¡H¡j¤H¶¡¹Ø©R¦]¬°µu¼È¡A¤~§óÅã±o¬Ã¶Q¡CÃø±o¨Ó¤@½ë¤H¶¡¡AÀ³°Ý¬O§_¬°¤H¶¡µo´§¤F¦Û¤vªº¨}¯à¡A¦Ó¤£­n¤@¨ý¨Dªø¹Ø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD