- ©«¤l
- 146
- ¥DÃD
- 41
- ºëµØ
- 0
- ¿n¤À
- 229
- ÂI¦W
- 294
- §@·~¨t²Î
- WIN10
- ³nÅ骩¥»
- 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2011-6-21
- ³Ì«áµn¿ý
- 2024-11-28
|
½Ð±Ð¦U¦ì«e½ú,¬°¦ó·s¼W¨ì²Ä10µ§´N·|,¿ù»~,¶W¥X½d³ò,ÁÂÁÂ.
Sub «ö¶s1_Click()
Set d = CreateObject("Scripting.Dictionary")
a = [a1].CurrentRegion
For i = 1 To UBound(a)
k = a(i, 1) & a(i, 2)
If Not d.exists(a(i, 1) & a(i, 2)) Then
d(k) = Application.Index(a, i)
Else
d(k) = Array(d(k)(1), d(k)(2), d(k)(3), d(k)(4) + a(i, 4))
End If
Next
'[a9].Resize(d.Count, 4) = Application.Transpose(Application.Transpose(d.items))
[f1].Resize(d.Count, 4) = Application.Transpose(Application.Transpose(d.items))
'Range("a" & x).Resize(d.Count, 4) = Application.Transpose(Application.Transpose(d.items))
End Sub |
|