|
本帖最后由 不知道为什么 于 2018-8-5 13:28 编辑
刚开电脑。代码如下
- Option Explicit
- Sub 结果N()
- Dim Dic, Dfh, Djs, Arr, Brr(), k, Msg
- Dim Ms$, Mm$, Gjz$, i&, j&, n&, x&, y&, bz%
- Dim crr(1 To 10000)
- Application.ScreenUpdating = False
- Set Dic = CreateObject("scripting.dictionary")
- Set Dfh = CreateObject("scripting.dictionary")
- With Sheets("种类")
- Arr = .[a1].CurrentRegion
- For i = 1 To UBound(Arr)
- Ms = Trim(Arr(i, 2)) & "|" & Trim(Arr(i, 3)) & "|" & Trim(Arr(i, 4))
- Dfh(Ms) = Arr(i, 1)
- Next i
- End With
- With Sheets("原始数据")
- Arr = .[a1].CurrentRegion
- For i = 2 To UBound(Arr)
- Gjz = CStr(Trim(Arr(i, 1))) & "#" & CStr(DateValue(Arr(i, 2)))
- Ms = Trim(Arr(i, 3)) & "|" & Trim(Arr(i, 4)) & "|" & Trim(Arr(i, 5))
- Dic(Gjz) = Dic(Gjz) & "#" & Ms
- Next i
- End With
-
复制代码 |
评分
-
2
查看全部评分
-
|