|
- Sub °′Å¥1_Click()
- Set d = CreateObject("scripting.dictionary")
- Application.ScreenUpdating = False
- arr = Sheets(1).[a3].CurrentRegion
- For j = 2 To UBound(arr)
- If arr(j, 14) > 0 Then
- If d.exists(arr(j, 3)) Then
- d(arr(j, 3)) = d(arr(j, 3)) & "," & arr(j, 6) & arr(j, 16)
- Else
- d(arr(j, 3)) = arr(j, 6) & arr(j, 16)
- End If
- End If
- Next j
- [b6].Resize(d.Count) = WorksheetFunction.Transpose(d.keys)
- [c6].Resize(d.Count) = WorksheetFunction.Transpose(d.items)
- Application.ScreenUpdating = True
- End Sub
复制代码 |
|