|
本帖最后由 准提部林 于 2018-2-17 11:22 编辑
- Sub TEST()
- Dim R, xA As Range, xB As Range, xH As Range, xE As Range, i&, j%
- Application.ScreenUpdating = False
- R = Cells(Rows.Count, 1).End(xlUp).Row
- Set xA = [A1]: Set xB = [FW1]: Set xH = [GK1]: Set xE = xH
- For i = 1 To 11
- For j = 1 To 16
- If xA <> "" Then
- xA.Resize(R).Copy xE(1, 2)
- xB.Resize(R).Copy xE
- xE.Resize(R, 2).Sort Key1:=xE(1, 2), Order1:=xlAscending, Header:=xlNo
- Set xE = xE(R + 1)
- End If
- Set xA = xA(1, 2)
- Next j
- Set xH = xH(1, 2): Set xE = xH: Set xB = xB(1, 2)
- Next i
- [GV:GV].Clear
- End Sub
复制代码
Xl0000319.rar
(46.54 KB, 下载次数: 6)
|
|