¨C¦~ªº²Ä¤@Ó¤u§@»P³Ì«á¤@Ó¤u§@¤Ñ
- ©«¤l
- 7
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 11
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2021
- ¾\ŪÅv
- 50
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2010-8-22
- ³Ì«áµn¿ý
- 2024-11-12
|
¦U¦ì§A¦n, ªì¨ì¶Q¹Ò
³Ì«á¤@Ó¤u§@¤Ñ- Function LastFridayInMonth(lngYear As Long, lngMonth As Long) As Date
- Dim lngLastDay As Long
- 'define last day of the month of interest:
- lngLastDay = DateSerial(lngYear, lngMonth + 1, 0)
- 'use to get last friday:
- LastFridayInMonth = lngLastDay - WeekDay(lngLastDay, vbFriday) + 1
- End Function
- Sub Check_Last_WorkDay()
- MsgBox LastFridayInMonth(2011, 12)
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|