- ©«¤l
- 65
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 87
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOWS10
- ³nÅ骩¥»
- 2019
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-7-26
- ³Ì«áµn¿ý
- 2024-1-31
|
¤W¤@Ó°ÝÃD¬O§Údim¦³¥[¤F¤@¥ydim g as range¡A§ï¤F¤§«á¤S¥X²{¥t¤@Ó
Set g = CreateObject("Scripting.Dictionary")
For Each sh In Sheets(Array("¬£§¨³ø«Å¶Ç¨®", "NP¡BCF"))
With sh
R = 3
gt = .Cells(R, 1)
Do Until gt > Sheets("¤é³øªí").[E2]
For Each a In .Range(.[B2], .[B2].End(xlToRight))
W = a.Offset(-1, 0).MergeArea.Cells(1, 1) ----------- «¬ºA¤£²Å
g(W & a) = g(W & a) + .Cells(R, a.Column).Value
Next
R = R + 1
dt = .Cells(R, 1)
Loop
End With
Next
With Sheets("¤é³øªí")
For Each a In .[B15:B26]
at = a
For Each b In .[P14:U14]
If b.Column > 18 Then at = ""
.Cells(a.Row, b.Column) = g(b & at)
Next
Next
End With |
|