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

[µo°Ý] ¦p¦ó¦b­I´º°»´ú®É¶¡?

[µo°Ý] ¦p¦ó¦b­I´º°»´ú®É¶¡?

°²³]§Ú­n¦b¨C¤Ñªº¤U¤È4ÂI~¤U¤È5ÂI¤~·|°õ¦æ¤@¦¸

If TimeValue(Now) > TimeValue("16:00:00") And TimeValue(Now) < TimeValue("17:00:00") Then

¦ý¦³¨â­Ó°ÝÃD,

²Ä¤@¡G­n¦p¦ó¤£¦Û¤v¥h°õ¦æ¡A®É¶¡¨ì¥L´N·|°õ¦æ? (Excel³£¬O¶}±Òªºª¬ºA)

²Ä¤G¡G°²³]¤U¤È4ÂI¤@¨ì¡A¥L´N·|¤@ª½°õ¦æª½¨ì5ÂI¡A­n¦p¦ó¥u°µ¤@¦¸¡H(Excel³£¬O¶}±Òªºª¬ºA)

³Â·Ð¦U¦ì¤j¤j«ü±Ð

¥»©«³Ì«á¥Ñ n7822123 ©ó 2015-11-1 13:52 ½s¿è

¦^´_ 1# EGBT


    ¥ý°õ¦æ¤@¦¸ T1 µ{§Ç´N¦æ¤F:D
  1. Sub T1()
  2. Dim ¤u§@®É¶¡ As Date
  3. Dim ­«±Ò®É¶¡ As Date
  4. ¤u§@®É¶¡ = Date + TimeSerial(16, 0, 0)
  5. ­«±Ò®É¶¡ = Date + 1 + TimeSerial(0, 0, 1)
  6. Application.OnTime ¤u§@®É¶¡, "¤u§@"       '®É¶¡¨ì¤µ¤Ñ16ÂI¡AIJµo¤u§@µ{§Ç
  7. Application.OnTime ­«±Ò®É¶¡, "T1"         '©ú¤Ñ­â±á1¤À ¦Û°ÊIJµo¦¹µ{§Ç
  8. End Sub

  9. Sub ¤u§@()
  10. If TimeValue(Now) < TimeValue("16:00:00")  then exit sub
  11. If TimeValue(Now) > TimeValue("17:00:00")  then exit sub
  12. MsgBox "¶}©l¤u§@"
  13. End Sub
½Æ»s¥N½X

TOP

¦^´_ 2# n7822123


    ¸É¥R:

¦A¤u§@µ{§Ç³Ì«á¤@¦æ¥[¤J Call ¤u§@¡A´N¥i¥HµL¸£°õ¦æ¨ì¤U¤È5ÂI¤~°±¤î¡C

TOP

¦^´_ 3# n7822123


    ¤j¤j±z¦n¡G

§Ú°õ¦æ¤@¦¸¤§«á¡A§Ú½Õ¾ã¹q¸£®É¶¡´N¤£·|¦A­«·s°õ¦æ¤F...¬°¤°»ò·|³o¼Ë¡H

TOP

        ÀR«ä¦Û¦b : ¬Ý§O¤H¤£¶¶²´¡A¬O¦Û¤v­×¾i¤£°÷¡C
ªð¦^¦Cªí ¤W¤@¥DÃD