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

[µo°Ý] ­p®É¾¹°±¤î©ñ¦bAuto_Close ¥¢±Ñ?

[µo°Ý] ­p®É¾¹°±¤î©ñ¦bAuto_Close ¥¢±Ñ?

­p®É¶}©l¤£­n«öµ²§ôª½±µÃö³¬ÀÉ®×,on time ¤èªk¥¢±Ñ ?? Book2.rar (15.08 KB)

¥»©«³Ì«á¥Ñ GBKEE ©ó 2014-4-19 10:39 ½s¿è

¦^´_ 1# t8899
  1. Sub showtime()
  2.     abf = TimeValue("00:00:01")
  3.     tbme = Time + abf
  4.     Application.OnTime tbme, "showtime", LatestTime:=tbme + #12:00:01 AM#
  5.     'LatestTime     ¿ï¾Ü©Êªº Variant¡Cµ{§Ç¶}©l°õ¦æªº³Ì±ß®É¶¡¡C¨Ò¦p¡ALatestTime °Ñ¼Æ³]¬° EarliestTime + 30¡A·í®É¶¡¨ì¤F EarliestTime ®É¡A¦pªG¥Ñ©ó¨ä¥Lµ{¦¡³B©ó°õ¦æª¬ºA¦Ó¨Ï Microsoft Excel ¤£³B©ó [´Nºü]¡B[½Æ»s]¡B[°Å¤U] ©Î [´M§ä] ¼Ò¦¡¡A«h Microsoft Excel ±Nµ¥«Ý 30 ¬íÅý²Ä¤@­Óµ{§Ç¥ýµ²§ô°õ¦æ¡C¦pªG 30 ¬í¤º Microsoft Excel µLªk¦^¨ì [´Nºü] ¼Ò¦¡¡A«h¤£°õ¦æ¦¹µ{§Ç¡C¦pªG¬Ù²¤¸Ó¤Þ¼Æ¡AMicrosoft Excel ±N¤@ª½µ¥«Ý¨ì¥i¥H°õ¦æ¸Óµ{§Ç¬°¤î¡C
  6.     Sheets("Sheet3").Range("a1").Value = Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
  7. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¥»©«³Ì«á¥Ñ t8899 ©ó 2014-4-19 09:36 ½s¿è
¦^´_  t8899 ¥i­×§ï¦p¤U
GBKEE µoªí©ó 2014-4-19 09:13

´ú¸Õµ²ªG¡Aauto_close ¨Ã¨SÃö³¬Application.OnTime
Ãö³¬«á¡AÀɮפS·|¦Û°Ê¶}±Ò???

TOP

        ÀR«ä¦Û¦b : ¦³®É·í«äµL®É­W¡A¦n¤Ñ­n¿n«B¨Ó³¡C
ªð¦^¦Cªí ¤W¤@¥DÃD