- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 3# color790 - Sub Ex()
- Dim m%, d%, S$, Work_Day As Date
- For m = 1 To 12
- '¨C¤ëªº²Ä¤@Ó¤u§@¤Ñ
- If m = 1 Then
- Work_Day = Evaluate("WORKDAY(""" & DateSerial(Year(Date), m, 1) & """,1)")
- Else
- Work_Day = DateSerial(Year(Date), m, 1)
- Do Until Weekday(Work_Day, vbMonday) <= 5
- Work_Day = Work_Day + 1
- Loop
- End If
- For d = 1 To 11 '²Ä¤@©P¨ì²Ä¤G©P ³Ì¤j¶¡¹j¼Æ 2010/1¤ë¬°¨Ò
- If DatePart("ww", DateSerial(Year(Date), m, d), vbMonday) > DatePart("ww", Work_Day, vbMonday) Then
- S = S & Chr(10) & DateSerial(Year(Date), m, d)
- Exit For
- End If
- Next
- Next
- MsgBox S
- End Sub
½Æ»s¥N½X |
|