|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
代码如下。。。
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address <> "$BY$1" Then Exit Sub
Application.ScreenUpdating = False
x = 1
For i = 4 To 64
x = x + 1
arr = [BG36:BX36].Offset(291 - 36 + 1 - 4 * i).Resize(4 * i)
n = 0
ReDim brr(1 To 4, 1 To UBound(arr, 2))
For j = 1 To 4 * i Step i
n = n + 1
For k = 1 To UBound(arr, 2)
brr(n, k) = arr(j, k)
Next
Next
[bg295].Offset((x - 2) * 7).Resize(4, UBound(arr, 2)) = brr
i = 2 ^ (x + 1) - 1
Next
Beep
Application.ScreenUpdating = True
End Sub
|
评分
-
1
查看全部评分
-
|