|
wusong8707 发表于 2014-6-3 09:25
wj2368 这位侠圣大哥,请问我如何查看你的公式呢,我点进去好像没有找到,不知怎么弄,请求解
在VBA编辑窗口中可以看到- Sub yy()
- Dim brr(1 To 10000, 1 To 9)
- Sheet2.[a5:i56565] = ""
- arr = Sheet1.Range("a6:ai" & Sheet1.Range("b56565").End(3).Row)
- For i = 1 To UBound(arr)
- For j = 6 To UBound(arr, 2) Step 5
- If arr(i, j + 1) <> "" Then
- a = a + 1
- brr(a, 1) = arr(i, 1): brr(a, 2) = arr(i, 2)
- brr(a, 3) = arr(i, j): brr(a, 4) = arr(i, j + 1): brr(a, 5) = arr(i, j + 2): brr(a, 6) = arr(i, j + 3): brr(a, 7) = arr(i, j + 4)
- End If
- Next
- Next
- Sheet2.[a5].Resize(a, 9) = brr
- End Sub
复制代码 |
|