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

[µo°Ý] ®É¶¡½d³ò¤ñ¹ï°ÝÃD

¦^´_ 10# Hsieh


     ¦A¦¸ÁÂÁÂHsieh©MGBKEE ª©¤jªºÀ°¦£^_^ ·P¿E¤£ºÉ!
     ÁöµM´ú¸ÕÁÙ¬O¦³¨Ç®t²§¡A¦ý¬Oª©¤jªº¼ö¤ß´£¨Ñ¤F¤p§Ì³\¦h«ä¦Òªº¤è¦V¡A«ÜÁÂÁ§A­ÌªºÀ°¦£^_^
¤p«Ä

TOP

¦^´_ 11# child

¥Î²Â¤èªk¸Ñ¨M
  1. Sub nn()
  2. Dim i#
  3. Set d = CreateObject("Scripting.Dictionary")
  4. a = CDbl(#10/11/2011 8:00:00 AM#)
  5. b = CDbl(#10/11/2011 2:30:00 PM#)
  6. For Each c In Range([C2], [C2].End(xlDown))
  7. k = Int(a) - Int(c.Offset(, -1))
  8. c.Offset(, 1) = "N"
  9. For i = IIf(k = 0, c.Offset(, -1), Int(c.Offset(, -1)) + k - 1) To c Step TimeValue("00:01:00")
  10.    If i >= a And i <= b Then c.Offset(, 1) = "Y": Exit For
  11. Next
  12. Next
  13. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ¡i°µ¤Hªº¶}©l¡j¨C¤@¤Ñ³£¬O¬G¤Hªº¶}©l¡A¨C¤@­Ó®É¨è³£¬O¦Û¤vªºÄµ±§¡C
ªð¦^¦Cªí ¤W¤@¥DÃD