- ©«¤l
- 976
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 1018
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-4-19
- ³Ì«áµn¿ý
- 2025-1-10
|
¦^´_ 1# ¬PªÅÉ@¦ÐÁl
½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ
Sub test()
Dim Arr, xD, C%, T%, T1%
Application.DisplayAlerts = False
Set xD = CreateObject("Scripting.Dictionary")
C = Cells(5, Columns.Count).End(xlToLeft).Column
Arr = Range([e5], Cells(5, C))
For j = 1 To UBound(Arr, 2)
T = Month(Arr(1, j))
T1 = Split(Arr(1, j), "/")(2)
If T1 = 1 Then
If T = 1 Then
Cells(4, j + 4) = "¤@¤ë"
ElseIf T = 2 Then
Cells(4, j + 4) = "¤G¤ë"
ElseIf T = 3 Then
Cells(4, j + 4) = "¤T¤ë"
ElseIf T = 4 Then
Cells(4, j + 4) = "¥|¤ë"
ElseIf T = 5 Then
Cells(4, j + 4) = "¤¤ë"
ElseIf T = 6 Then
Cells(4, j + 4) = "¤»¤ë"
ElseIf T = 7 Then
Cells(4, j + 4) = "¤C¤ë"
ElseIf T = 8 Then
Cells(4, j + 4) = "¤K¤ë"
ElseIf T = 9 Then
Cells(4, j + 4) = "¤E¤ë"
ElseIf T = 10 Then
Cells(4, j + 4) = "¤Q¤ë"
ElseIf T = 11 Then
Cells(4, j + 4) = "¤Q¤@¤ë"
ElseIf T = 12 Then
Cells(4, j + 4) = "¤Q¤G¤ë"
End If
End If
If xD.Exists(T) Then
Set xD(T) = Union(xD(T), Cells(4, j + 4))
Else
Set xD(T) = Cells(4, j + 4)
End If
Next
For Each ky In xD.keys
xD(ky).Merge
Next
Application.DisplayAlerts = True
End Sub |
|