- ©«¤l
- 552
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 578
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-2-8
- ³Ì«áµn¿ý
- 2024-7-9
|
¦^´_ 1# toromru - Option Explicit
- Public Sub ex()
- Dim I As Date
- Dim r%, dN%, j%
- r = 1
- dN = DateSerial(Year(Date), Month(Date) + 2, 0) - DateSerial(Year(Date), Month(Date) + 1, 1) + 1 'pºâ¦¸¤ë¦³´X¤Ñ
- For j = 1 To Cells(Rows.Count, 1).End(xlUp).Row Step dN '
- For I = DateSerial(Year(Date), Month(Date) + 1, 1) To DateSerial(Year(Date), Month(Date) + 2, 0) '¶ñ¼g¤é´Á
- If Cells(r, 1) <> "" Then '¹J¨ìAÄ榳ªÅ¥Õ¡A´N°±¤î
- Cells(r, 2) = Format(I, "m/ d")
- r = r + 1
- End If
- Next
- Next
- End Sub
½Æ»s¥N½X |
|