|
Sub test()
Dim A, i, d, x
Set d = CreateObject("scripting.dictionary")
A = Sheets(1).UsedRange
For i = 7 To UBound(A)
x = A(i, 3) & Chr(32) & A(i, 4) & Chr(32) & A(i, 5)
d(x) = d(x) + A(i, 6)
Next i
Sheets(2).Select
Range("a1").CurrentRegion = ""
[a1].Resize(d.Count) = Application.Transpose(d.keys)
Columns("A:A").TextToColumns , Space:=True
[d1].Resize(d.Count) = Application.Transpose(d.items)
End Sub
板材料单2.rar
(24.6 KB, 下载次数: 18)
|
|