|
- Sub t()
- Dim d As Object, d1 As Object, i%, j%, ar, br
- Set d = CreateObject("scripting.dictionary")
- Set d1 = CreateObject("scripting.dictionary")
- ar = Sheets("分布").[a1].CurrentRegion
- br = Sheets("分布 (2)").[a1].CurrentRegion
- For i = 3 To UBound(ar)
- For j = 2 To UBound(ar, 2)
- d(ar(i, 1) & "|" & ar(2, j)) = ar(i, j)
- Next
- Next
- For i = 3 To UBound(br)
- For j = 2 To UBound(br, 2)
- d1(br(i, 1) & "|" & br(2, j)) = br(i, j)
- Next
- Next
- With Sheets("汇总")
- m = .[d3]: s = .[i3]
- ar = .Range("a11", .[a65536].End(3))
- For i = 1 To UBound(ar)
- ar(i, 1) = d(ar(i, 1) & "|" & s)
- Next
- .[v11].Resize(UBound(ar)) = ar
- .[s3] = d1(m & "|" & s)
- End With
- End Sub
复制代码 |
评分
-
1
查看全部评分
-
|