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

[µo°Ý] ½Ð¨t²Î¿é¥X¤é´Áªº¤é~«o¥X²{¸ê®Æ«¬ºA¿ù»~?

[µo°Ý] ½Ð¨t²Î¿é¥X¤é´Áªº¤é~«o¥X²{¸ê®Æ«¬ºA¿ù»~?

¥»©«³Ì«á¥Ñ av8d ©ó 2011-9-28 09:28 ½s¿è

D = Day(TextBox1)
MsgBox D

¥X²{¸ê®Æ«¬ºA¿ù»~
¦~¤ë³£¨S°ÝÃD~¤é¤£ª¾¹D¬°¤°»ò«o¥X²{°ÝÃD?

ªþ¤W­ìÀÉ®× icash.rar (25.35 KB)

¦^´_ 14# luhpro


­ì¨Ó¥i¥H³o¼Ë³B²z......

TOP

¦^´_  luhpro
·PÁ¦U¦ì¤j¤j~
§ÚPO¤@¤U°ÝÃD~¤w¥[¤J±z´£¨Ñªº¸ê°T
Private Sub CommandButton1_Cl ...
av8d µoªí©ó 2011-9-28 09:27

µo¥Í¿ù»~ªºÃöÁä¦b©ó DateSerial ¤¤ªº°Ñ¼Æ¬O 3 ­Ó "¼Æ­È" ¦Ó«D "¦r¦ê" :
¬G¦Ó¥u­n§â & "/" &  §ï¦¨ ,  §Y¥i
icash-ans.zip (25.5 KB)

¥t : ­Ó¤HÆ[ÂI, ­Y¤@¥´¶}ÀÉ®×´N¬Ý¨ì¤@¤ù¶Â, ·|Åý¤H·Pı¤£µÎªA,
«Øij¹ç¥iªÅ¥Õ¨ì¤°»ò³£¬Ý¤£¨ì¤]¤ñ¾ã¤ù¶Â¹À¹À­n¦n.

TOP

¦^´_ 12# luhpro


    ·PÁ¦U¦ì¤j¤j~
§ÚPO¤@¤U°ÝÃD~¤w¥[¤J±z´£¨Ñªº¸ê°T
Private Sub CommandButton1_Click()
'¸ê®Æ«ØÀÉ
    Y = (Year(TextBoxM))
    M = (Month(TextBoxM))
    D = (Day(TextBoxM))
    N1 = TextBoxN1
    N2 = TextBoxN2
    N3 = Round(N1 / N2)
    For i = (M + 1) To (M + N2)
        If i > 12 Then
        Sheets("Data").Cells(Rows.Count, "A").End(3)(2, 1).Resize(1, 5) = Array(DateSerial(Y & "/" & (i - 12) & "/" & D), "¤À´Á¥I´Ú", N3, TextBox1, TextBox2)
        Else
        Sheets("Data").Cells(Rows.Count, "A").End(3)(2, 1).Resize(1, 5) = Array(DateSerial(Y & "/" & i & "/" & D), "¤À´Á¥I´Ú", N3, TextBox1, TextBox2)
        End If
    Next
    Unload Me
End Sub

µLªk°õ¦æ

TOP

¥»©«³Ì«á¥Ñ luhpro ©ó 2011-9-27 22:01 ½s¿è
°ÝÃDªÖ©w¤£¬O¥X¦b¬A¸¹
»yªk¤WD=(Day(TextBox1))
³o³Ì¥~³ò¬A¸¹¬O¦h¾lªº
Hsieh µoªí©ó 2011-9-27 15:45

±à...
°ÝÃDªº½T¤£À³¥X²{¦b¬A¸¹,
Post ¤å¤¤ªº¬A¸¹¬O¦]¬°´ú¸Õ®É§Ú¬O¤À§O¥Î MsgBox(Day(TextBox1)) ¨q¥Xµ²ªG¨Óªº,
«á¨Ó®M¥Î¨ì¼Ó¥Dªºµ{¦¡®É¨Sª`·N¨ì­n§â¬A¸¹®³±¼,
ÁöµM¦³¨S¬A¸¹µ²ªG³£¬O¬Û¦Pªº,
¦ý¬O«o³y¦¨¤F¼Ó¥Dªº»~¸Ñ, «Ü©êºp.

¦^´_  luhpro
¹ï¤F§Ú¸Ó¦p¦ó§â²Õ¦X¥X¨Óªº¦rÅܦ¨¤é´Á®æ¦¡
2011/9/27
Y &"/" & M & "/" & D
¤é´Á ...
av8d µoªí©ó 2011-9-27 16:52

DateSerial(2011, 9, 27)
³o­Ó«ü¥O¥u­n·j´M "¤é´Á" ´N¥i¥H§ä¨ì,
¦h¦hµ½¥Î F1 «öÁ䪺»¡©ú¥\¯à¥i¥H¦h¾Ç«Ü¦hªF¦è³á.

TOP

¦^´_ 9# jimmyhk


   
°ÝÃDªÖ©w¤£¬O¥X¦b¬A¸¹
»yªk¤WD=(Day(TextBox1))
³o³Ì¥~³ò¬A¸¹¬O¦h¾lªº

TOP

¥»©«³Ì«á¥Ñ av8d ©ó 2011-9-28 09:17 ½s¿è

¦^´_ 5# luhpro


    ¹ï¤F§Ú¸Ó¦p¦ó§â²Õ¦X¥X¨Óªº¦rÅܦ¨¤é´Á®æ¦¡
2011/9/27
Y &"/" & M & "/" & D
¤é´Á®æ¦¡

ªþ¤W­ìÀÉ
icash.rar (25.35 KB)

TOP

¦^´_ 8# GBKEE


¥L¦n¹³¤w¸g¸Ñ¨M°ÝÃD¤F...

TOP

¦^´_ 6# av8d
¥¼¦ó¤£ªþ¤W µ{¦¡½X Åý¤j®a¦bºN¶H.

TOP

°ÝÃDªÖ©w¤£¬O¥X¦b¬A¸¹
»yªk¤WD=(Day(TextBox1))
³o³Ì¥~³ò¬A¸¹¬O¦h¾lªº
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¯Ê¤fªºªM¤l¡A¦pªG´«¤@­Ó¨¤«×¬Ý¥¦¡A¥¦¤´µM¬O¶êªº¡C
ªð¦^¦Cªí ¤W¤@¥DÃD