|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
Option Explicit
Sub TEST2()
Dim ar, br, iRow, i&, j&, rng As Range
Application.ScreenUpdating = False
Columns("K").Clear
br = Array(1, 3, 5, 7, 2, 4, 6)
With [A1].CurrentRegion
ar = .Resize(.Rows.Count + 1)
For j = 0 To UBound(br)
Set rng = Range(.Cells(1, br(j)), .Cells(UBound(ar), br(j)).End(xlUp))
iRow = Cells(Rows.Count, "K").End(xlUp).Row
iRow = IIf(iRow = 1, 1, iRow + 1)
rng.Copy Cells(iRow, "K")
Next j
End With
Application.ScreenUpdating = True
Beep
End Sub
|
评分
-
1
查看全部评分
-
|