|
Sheets("汇总数据").Range("A2").Resize(D.Count,3)=application.rept(d.Items,1)中 application.rept(d.Items,1)是什么意思
等价于下面蓝色写法
Sub demo()
Set d = CreateObject("Scripting.Dictionary")
d(1) = Array(1, 2, 3)
d(2) = Array(4, 5, 6)
[a1].Resize(d.Count, 3) = Application.Transpose(Application.Transpose(d.items))
End Sub
|
|