excel中第一列相同,合并第2列中相应单元格内容,并用顿号隔开
(2023-09-24 11:35:55)Sub test()
Application.ScreenUpdating = False
n = 1
Set d = CreateObject("scripting.dictionary")
arr = [a1].CurrentRegion
For i = 1 To UBound(arr)
Next
[e1].Resize(d.Count) = Application.Transpose(d.keys)
cnt = d.Count
k = d.items
d.RemoveAll
For j = 0 To cnt
On Error Resume Next
Next
Cells(Rows.Count, "F").End(3).Delete
Application.ScreenUpdating = False
End Sub
后一篇:Excel表格批量添加分页符