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

[µo°Ý] ­pºâ¤é´Á°ÝÃD

[µo°Ý] ­pºâ¤é´Á°ÝÃD

½Ð°ÝExcel Vba ­n¦p¦ó­pºâ1­Ó¤ë¦³´X¤Ñ?
jason

ÁÙ¦³­Ó¤èªk¡G
[a1] = "=day(eomonth(""2010/2/5"",0))"

TOP

Sub Ex()
    Dim WDay As Date
    WDay = "2010/2/5"
    MsgBox day(DateSerial(Year(WDay), Month(WDay) + 1, 0))
End Sub

TOP

¦^´_ 1# jasonv88
  1. Sub Ex()
  2.     Dim WDay As Date
  3.     WDay = "2010/2/5"
  4.     MsgBox DateSerial(Year(WDay), Month(WDay) + 1, 1) - DateSerial(Year(WDay), Month(WDay), 1)
  5. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¨C¤ÑµL©Ò¨Æ¨Æ¡A¬O¤H¥Íªº®ø¶OªÌ¡A¿n·¥¡B¦³¥Î¤~¬O¤H¥Íªº³Ð³yªÌ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD