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

[µo°Ý] DateSerial ¤Þ¼Æ¤£¬°¿ï¾Ü©Ê(ootional) (¤w¸Ñ¨M¡AÁÂÁÂH¤j)

[µo°Ý] DateSerial ¤Þ¼Æ¤£¬°¿ï¾Ü©Ê(ootional) (¤w¸Ñ¨M¡AÁÂÁÂH¤j)

¥»©«³Ì«á¥Ñ av8d ©ó 2012-5-21 14:21 ½s¿è

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

¨Ï¥Îªº³nÅé¬O EXCEL2010

ªþ¤W ªþ¥ó Àx»WºÞ²z¨t²Î.rar (25.49 KB)

¥»©«³Ì«á¥Ñ av8d ©ó 2012-5-23 09:56 ½s¿è

¦^´_ 4# Hsieh


    ¤j¤j~ÁÂÁÂ~¤S¦h¾Ç¤F¤@¼Ë~

Ãö©ó¤é´Áªº·j´M~¥X¤F¨Ç°ÝÃD

¥H¤U¬O³æ¤@·j´M
ActiveSheet.UsedRange.AutoFilter 1, "=" & "*" & TextBox1.Value & "*"

¦pªG­n½d³ò·j´M¤é´Á~¸Ó«ç»ò°µ©O? «ùÄò´M§ä¤¤


¶¶±a´£°Ý¤@­Ó°ÝÃD
m1 = DateSerial(Year(Date), i, 1)

Year(Date) ¥Nªí¤µ¦~ªº·N«ä¶Ü?

TOP

¦^´_ 3# av8d
DateSerial²£¥Íªº¤é´Á®æ¦¡¬°¦~¤ë¤é  ¥i¬O«oÅã¥Ü¤ë¤é¦~
³o¬O»P¨t²Î³]©w¦³Ãö¡A½Ð©ó±±¨î¥x/¦a°Ï»P»y¨¥¤¤³]©w¦¨§A­nªº®æ¦¡
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¥»©«³Ì«á¥Ñ av8d ©ó 2012-5-22 13:16 ½s¿è

¦^´_ 2# Hsieh


    ÁÂÁ¤j¤j~¦³¤@­Ó¶i¶¥°ÝÃD·Q°Ý±z~

¦pªG¸ÓÀx¦s®æ®æ¦¡¬° ¤å¦r
¦ý¬O¿é¥X´N·|Åܦ¨ÄA­Ë
­ì¥»¬O  2012/5/22   ·|Åܦ¨   5/22/2012

¥Ñ©óÀx¦s®æ®æ¦¡¬° ¤å¦r   µLªk¹³¤é´Á®æ¦¡¤@¼Ë°µ½Õ¾ã  ¤£ª¾¬O§_¦³¸Ñ¨M¤è®×©O?

§Ú¦b·QÀ³¸Ó¬OArray(DateSerial(Y, i, D), "¤À´Á¥I´Ú", N3, TextBox4, TextBox5)

DateSerial²£¥Íªº¤é´Á®æ¦¡¬°¦~¤ë¤é  ¥i¬O«oÅã¥Ü¤ë¤é¦~

Âà´«¦¨¤å¦r¬O¤è«K°µ¤é´Á·j´M~¸g±`·j´M¤£¨ì~

TOP

¦^´_ 1# av8d

DateSerial(Y, i - 12, D)
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ºw¤ô¦¨ªe¡C²É¦Ì¦¨ÅÚ¡A¤Å»´¤vÆF¡A¤Å¥Hµ½¤p¦Ó¤£¬°¡C
ªð¦^¦Cªí ¤W¤@¥DÃD