- ©«¤l
- 2834
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2890
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-25
|
¦^´_ 11# gaishutsusuru
Y¦UÃþ¶×Á`µ²ªG©T©w³Ì¦h6000µ§, ¥iµy²¤Æ:- Sub TEST()
- Dim Arr, Brr, xD, r&, c%, i&, j&, k%, N&(2), Sr As Range
- [O2:AP6000].Clear: Brr = [O2:AP6000]
- Set xD = CreateObject("Scripting.Dictionary")
- For Each Sr In [L2:M30]
- k = 1 - k: If Sr <> "" Then xD(Sr & "/") = 2 - k
- Next
- '--------------------------------
- Arr = Range([J1], Cells(Rows.Count, 1).End(xlUp))
- For i = 2 To UBound(Arr)
- If IsDate(Arr(i, 3)) * IsDate(Arr(i, 3)) = 0 Then GoTo 101
- c = xD(Arr(i, 2) & "/")
- For j = Arr(i, 3) To Arr(i, 4) - 1
- r = xD(j & "|" & c)
- If r = 0 Then N(c) = N(c) + 1: r = N(c): xD(j & "|" & c) = r
- Brr(r, c * 10 + 2) = CDate(j)
- For k = 3 To 8: Brr(r, c * 10 + k) = Brr(r, c * 10 + k) + Arr(i, k + 2): Next k
- Next j
- 101: Next i
- '''--------------------------------
- [O2:AP6000] = Brr
- For Each Sr In Range("P2,Z2,AJ2")
- Sr.Resize(6000, 7).Sort Key1:=Sr, Order1:=xlAscending, Header:=xlNo
- Next
- MsgBox "~~¤ÀÃþ¥[Á`§¹¦¨~~ "
- End Sub
½Æ»s¥N½X |
|