|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
Option Explicit
Sub test()
Dim Arr
Dim I, A As Integer
Arr = Worksheets("sheet1").Range("B2:G5")
A = 1
For I = 1 To UBound(Arr)
Worksheets("sheet2").Cells(A, 6) = Arr(I, 1)
Worksheets("sheet2").Cells(A + 1, 6) = Arr(I, 2)
Worksheets("sheet2").Cells(A + 2, 6) = Arr(I, 3)
Worksheets("sheet2").Cells(A + 3, 6) = Arr(I, 4)
Worksheets("sheet2").Cells(A + 4, 6) = Arr(I, 5)
Worksheets("sheet2").Cells(A + 5, 6) = Arr(I, 6)
A = A + 7
Next
End Sub |
评分
-
1
查看全部评分
-
|