|
- Sub 矩形圆角2_Click()
- arr = Sheets("合同量内表").UsedRange
- brr = Sheets("入库信息").UsedRange
- Set d = CreateObject("scripting.dictionary")
- For i = 2 To UBound(arr)
- d(arr(i, 2)) = ""
- Next i
-
- For i = 2 To UBound(brr)
- If d.exists(brr(i, 4)) Then
- d(brr(i, 4)) = d(brr(i, 4)) & "|" & brr(i, 3) & "|" & brr(i, 6)
- End If
- Next i
-
- With Sheets("合同量内表")
- For i = 2 To UBound(arr)
- a = d(arr(i, 2))
- a = Right(a, Len(a) - 1)
- sp = Split(a, "|")
- .Range("R" & i).Resize(, UBound(sp) + 1) = sp
- Next i
- End With
- Set d = Nothing
- End Sub
复制代码 |
|