- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¦^´_ 6# jim
ªþ¤W¤@Ó¹ê°È½d¨Ò¡A¨Ñ°Ñ¦Ò¡G
- Sub ´«¤ë()
- Dim cts As Integer, xs As Integer
- Dim rng As Range, lDate As Date
- Dim ¦~ As String, ¤ë As String
-
- With Sheets("XXXXXX")
- For xs = 0 To 2
- ' ±N H1:AL2¡BH18:AL19¡BH35:AL36 ½d³ò¤º¤§¸ê®Æ²MªÅ¡C
- .Range("H" & (xs * 17 + 1) & ":AL" & (xs * 17 + 2)).ClearContents
- ' ³]©w rng ¬° H1¡BH18¡B¥H¤Î H35 Äæ¦ì¡C
- Set rng = .Range("H" & IIf(xs < 3, xs * 17 + 1, 63))
- For cts = 1 To Day(DateSerial(¦~, ¤ë + 1, 0)) ' ¨ú±o¸Ó¤ë¤Ñ¼Æ
- rng.Offset(, cts - 1) = cts
- ' H1¡BH18¡B¥H¤Î H35 Äæ¦ìȬ°´X¸¹¡F¨Ã¨Ì§Ç©¹¥k©µ¦ù¡C
- lDate = DateSerial(¦~, ¤ë, cts)
- ' H2¡BH19¡B¥H¤Î H36 Äæ¦ìȬ°¬P´Á´X¡F¨Ã¨Ì§Ç©¹¥k©µ¦ù¡C
- rng.Offset(1, cts - 1) = Right(WeekdayName(Weekday(lDate)), 1)
- Next cts
- Next xs
- End With
- End Sub
½Æ»s¥N½X |
|