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

[µo°Ý] ¦Û°Ê±a¤J¤é´Á

¦^´_ 1# toromru
  1. Option Explicit

  2. Public Sub ex()
  3. Dim I As Date
  4. Dim r%, dN%, j%
  5. r = 1
  6. dN = DateSerial(Year(Date), Month(Date) + 2, 0) - DateSerial(Year(Date), Month(Date) + 1, 1) + 1 '­pºâ¦¸¤ë¦³´X¤Ñ
  7. For j = 1 To Cells(Rows.Count, 1).End(xlUp).Row Step dN '
  8.         For I = DateSerial(Year(Date), Month(Date) + 1, 1) To DateSerial(Year(Date), Month(Date) + 2, 0) '¶ñ¼g¤é´Á
  9.             If Cells(r, 1) <> "" Then '¹J¨ìAÄ榳ªÅ¥Õ¡A´N°±¤î
  10.                 Cells(r, 2) = Format(I, "m/ d")
  11.                 r = r + 1
  12.             End If
  13.         Next
  14. Next
  15. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : §Ñ¥\¤£§Ñ¹L¡A§Ñ«è¤£§Ñ®¦¡C
ªð¦^¦Cªí ¤W¤@¥DÃD