|
参与一下。。。
- Sub ykcbf() '//2024.5.17
- With Sheets("Sheet1")
- r = .Cells(Rows.Count, 1).End(3).Row
- arr = .[a1].Resize(r, 1)
- End With
- ReDim brr(1 To UBound(arr), 1 To 8)
- On Error Resume Next
- For i = 1 To UBound(arr) Step 8
- m = m + 1
- For x = 1 To 8
- brr(m, x) = arr(i + x - 1, 1)
- Next
- Next
- With Sheets("Sheet2")
- .UsedRange.Offset(3).Clear
- .Columns("c:g").NumberFormatLocal = "@"
- With .[a4].Resize(m, 8)
- .Value = brr
- .Borders.LineStyle = 1
- .HorizontalAlignment = xlCenter
- .VerticalAlignment = xlCenter
- End With
- End With
- MsgBox "OK!"
- End Sub
复制代码
|
评分
-
1
查看全部评分
-
|