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

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

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

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

¦^´_ 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

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

TOP

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

TOP

        ÀR«ä¦Û¦b : ¨ü¤HÂI¤ô¤§®¦¡A¶··í´é¬u¥H³ø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD