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

ExcelÀɮ׶¢¸m¹L¤[¦Û°Ê¦sÀÉ®×µ²§ô

ExcelÀɮ׶¢¸m¹L¤[¦Û°Ê¦sÀÉ®×µ²§ô

¦U¦ì:
¥Ñ©ó¦³¨ÇExcelÀɮ׬O©M¦h¤H¦@¥Î¡A¦ý¦³®É§Ñ°OÃö³¬¥H¦Ü¨ä¥L¤H¤£¯à¶}±Ò¡A½Ð°Ý¦p¦ó¥ÎVBA¸Ñ¨M¨Ò¦p·íÀɮפw¸g¶¢¸m5¤ÀÄÁµ{¦¡·|¦Û°Ê¦sÀÉ©Mµ²§ôÀɮסC

¦^´_ 1# mmggmm
¸Õ¸Õ¬Ý
ThisWorkbook¼Ò²Õªºµ{¦¡½X
  1. Option Explicit
  2. Dim Msg_Time As Date
  3. Const ¶¡¹j = #12:01:00 AM#       '¶¢¸m5¤ÀÄÁ
  4. Private Sub Workbook_Open()
  5.     Msg_Time = Time + ¶¡¹j       '¬ö¿ý: ¶¢¸m®É¶¡
  6.     Application.OnTime Msg_Time, "THISWORKBOOK.Close_Me" '¶¢¸m®É¶¡¨ì,°õ¦æÃö³¬ÀÉ®×µ{¦¡(Close_Me)
  7. End Sub
  8. Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
  9.     '¥ô·N¤u§@ªí¦³°Ê§@
  10.     Application.OnTime Msg_Time, "THISWORKBOOK.Close_Me", , False '¨ú®ø °õ¦æÃö³¬ÀÉ®×µ{¦¡(Close_Me)
  11.     Workbook_Open
  12. End Sub
  13. Private Sub Close_Me()
  14.     Me.Close True '¶¢¸m®É¶¡¨ì,Ãö³¬ÀÉ®×
  15. End Sub
½Æ»s¥N½X

TOP

GBKEE§A¦n!
¨ä¤¤Const ¶¡¹j = #12:01:00 AM# ©M¥­®É¥ÎTimeValue="00:01:00"¤À§O¦b¨º¸Ì,ÁÂÁÂ.

TOP

¥»©«³Ì«á¥Ñ luhpro ©ó 2012-9-27 22:24 ½s¿è
GBKEE§A¦n!
¨ä¤¤Const ¶¡¹j = #12:01:00 AM# ©M¥­®É¥ÎTimeValue="00:01:00"¤À§O¦b¨º¸Ì,ÁÂÁÂ.
mmggmm µoªí©ó 2012-9-27 20:53

#12:01:00 AM# ¥H®É¶¡¬°³æ¦ì¨Ó­pºâ¼W¶q­È, ½á¤© Ontime ªº¬O®É¶¡ªí¥Ü¶q.
"00:01:00" ¥Î¦r¦ê§Î¦¡¨Óªí¥Ü, »Ý ±ý¤ñ¸ûªº¥Ø«e®É¶¡¦r¦ê¤º®e »P «ü©wªº®É¶¡¼W¶q«áµ²ªG¦r¦ê §¹¥þ¬Û¦P¤~IJµo°Ê§@.

¸É¥R GBKEE µoªí©ó 2012-9-27 17:20 #1 ªº¤º®e¥i¯à»Ý°µ­Ó½Õ¾ã:
03.Const ¶¡¹j = #12:01:00 AM#       '¶¢¸m5¤ÀÄÁ
§ï¬°
Const ¶¡¹j = #12:05:00 AM#       '¶¢¸m5¤ÀÄÁ
©Î
Const ¶¡¹j = #12:01:00 AM#       '¶¢¸m1¤ÀÄÁ
¬Ò¥i

TOP

¸ÑÄÀ¸ÔºÉ¡A³Ò·Ð¤F¡C

TOP

¤j¤j:
¸Õ¥Îµ²ªG·í¥Îªí¤u§@®É¥X²{¥H¤U¿ù»~.
on time.JPG

TOP

¦^´_ 6# mmggmm
2# ªºµ{¦¡½X ¥þ³¡¬OThisWorkbook¼Ò²Õªºµ{¦¡½X

TOP

°ÝÃD¤w¸Ñ¨M¡AÁÂÁÂ.

TOP

¤j¤j:
on time.JPG °T®§
  ¦b¦Û¤v¹q¸£¤W¶}±Ò¬O没¦³¥X²{.
  ·í©ñ¦bºôµ¸µw½L¤W¶}±Ò´N¥X²{¡A½Ð°Ý­ì¦]¦ó¦b¡C

TOP

        ÀR«ä¦Û¦b : ¤@¥y·Å·xªº¸Ü¡A´N¹³©¹§O¤H¨­¤WÅx­»¤ô¡A¦Û¤v·|ªg¨ì¨â¤Tºw¡C
ªð¦^¦Cªí ¤W¤@¥DÃD