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

[µo°Ý] ¯à§_À°§Ú¬Ý¬Ý¦p¦ó±N¦¹µ{¦¡§ó§ï¦¨¥H ¤p®É ¤ÀÄÁ ¬í¼Æ ­pºâ(¤w¸Ñ¨M)

¦^´_ 30# GBKEE


    ¥i¬O§Úªº"D"Äæ¨S¦³©ñ¤é´ÁÅý¥L¤ñ¸û,©Ò¥H·Q¸`¬Ù¥L,¤£¥ÎÅý¥L¨C¦¸§PÂ_"D"Äæ.

TOP

¦^´_ 31# vpower
**** 29¼Ó,31¼Ó¬O¨â½X¨Æ*****
29¼Ó
  ½ÐÀ°§Ú¬Ý¤@¤U,¤U­±³o­Óªº"D",¥\¯à¬O¤°»ò?¦pªG§Ú¨S¥Î¨ì,§ï¦p¦ó§R°£§ï¼g
                 I1 = DateDiff("D", Date, Range("C" & J1))ªº"D"


31¼Ó
¥i¬O§Úªº"D"Äæ¨S¦³©ñ¤é´ÁÅý¥L¤ñ¸û,©Ò¥H·Q¸`¬Ù¥L,¤£¥ÎÅý¥L¨C¦¸§PÂ_"D"Äæ.  

½Ð°Ý¬O¤u§@ªí"D"Äæ ¶Ü? §Aªºµ{¦¡½X¨S¦³¤ñ¹ï¨ì"D"Äæ

§A¦³¬Ý VBA ¤¤ªºDateDiff »¡©ú¶Ü?
I1 = DateDiff("D", Date, Range("C" & J1))ªº"D" ¦¹¨ç¼ÆDateDiff ªí¥Ü¨â­Ó¤é´Á¶¡¬Û®tªº®É¶¡¶¡¹j³æ¦ì¼Æ¥Ø
D¬O¤Ñªº³æ¦ì, ©Ò¥HI1¬°¶Ç¦^¤Ñ¼ÆªºÅܼÆ

TOP

¥»©«³Ì«á¥Ñ vpower ©ó 2011-6-9 09:38 ½s¿è

¤wµL´£°Ý¡C

TOP

¥»©«³Ì«á¥Ñ vpower ©ó 2011-6-9 10:39 ½s¿è
¦^´_  vpower
¸Õ¸Õ¬Ý
GBKEE µoªí©ó 2011-5-19 17:49



    ª©¥D±z¦n,¤S¨Ó¥´ÂZ±z,½Ð°Ý¤@¤U
³oÀɮ׸g±`¦b¶}±Ò«á¥X²{¦Û°ÊÃö³¬,©Î¬O¾Þ§@¨ì¤@¥b¦Û°ÊÃö³¬,¤£ª¾¹D¬O¤°»ò­ì¦]©O?
--------------------------------------------------------------------------------------
¦pªG§Ú·Q§â ¤w¹L  ©M   ÁÙ¦³ ²¾°£,§ï¦¨®É¶¡¨ì¤F¥X²{¸Ó¨Æ¥ó§Y¥i,§Ú¸Ó«ç»ò­×§ï©O?
¨Ò¦p,¨Æ¥ó¬ù·|A³]©w®É¶¡¬O5¤ÀÄÁ¥H«e,®É¶¡³Ñ¤U5¤ÀÄÁªº¨Æ¥óÅã¥Ü¥X¨Ó§Y¥i,
¤£­n¥þ³¡¨Æ¥ó³£Åã¥Ü,¤w¹LXX¤Ñ¡BÁÙ¦³XX¤Ñ³o¨Ç³£¤£Åã¥Ü,

½Ð°Ý«ö¤U´£¿ôªí³æ«á,¥L§â©Ò¿é¤Jªº­È¬O°e¨ì­þ¸Ì©O?
§Ú§ä¤F¤@¤U,¤£ª¾¸Ó¦p¦ó­×§ï¦¨©T©w®É¶¡,¤]´N¬O§Úª½±µ¿é¤J¦bVBA¤º.
¥u¦³¬Ý¨ì³o¬q
  1. Private Sub ´£¿ô(Msg As Boolean)     '³]©w¦Û°Ê©ó®É¶¡¨ì´£¿ô
  2.     Dim J1%
  3.     ´£¿ôMsg = False
  4.     With Sheets("Sheet1")
  5.         For J1 = 2 To .[C65536].End(xlUp).Row
  6.             If Range("C" & J1) <> "" And IsDate(Range("C" & J1)) Then
  7.                 If Range("C" & J1) > Now Then
  8.                     ´£¿ôMsg = True
  9.                     If Msg = True Then Application.OnTime Range("C" & J1) - TheTime, "Sheet1.CommandButton1_Click"                  '³]©w®É¶¡´£¿ô
  10.                 End If
  11.             End If
  12.         Next
  13.     End With
  14. End Sub
½Æ»s¥N½X
¦n¹³¨S¦³¦a¤è¥i¥H³]©w"A"³o­ÓÄæ¦ì,¸U¤@¨Æ¥ó¤£©ñ¦bAÄæ,§Ú¸Ó¦p¦ó«ü¦VA?

TOP

        ÀR«ä¦Û¦b : ¡i®É¶¡¦¨´N¤@¤Á¡j®É¶¡¥i¥H³y´N¤H®æ¡A¥i¥H¦¨´N¨Æ·~¡A¤]¥i¥HÀx¿n¥\¼w¡C
ªð¦^¦Cªí ¤W¤@¥DÃD