|
发表于 2015-12-14 15:50
|
显示全部楼层
本楼为最佳答案
- Sub tt()
- Set d = CreateObject("scripting.dictionary")
- For j = 4 To 7
- arr = Range(Cells(10, j), Cells(65536, j).End(3))
- For Each x In arr
- d(x) = ""
- Next
- Cells(10, j + 5).Resize(d.Count, 1) = Application.Transpose(d.keys)
- Cells(10, j + 5).Resize(d.Count, 1).Sort key1:=Cells(10, j + 5), order1:=xlDescending
- d.RemoveAll
- Next
- End Sub
复制代码 |
|