|
楼主 |
发表于 2023-4-15 15:08
|
显示全部楼层
本帖最后由 cmo9020 于 2023-4-16 14:51 编辑
在请教导师一下,如果我目标工作表有增加行数,如图片目标工作表和当前工作表都增加A6
那代码须要修改那些部份呢?
SQL = "SELECT F1 FROM [" & s & p & "[f]].[Report$J3:J3] UNION ALL SELECT F1 FROM [" & s & p & "[f]].[Report$B14:B18]"
还有
Function ProcessData(ar, br, rowSize As Long)
Dim i As Long, j As Long, colSize As Long
For i = 0 To UBound(br, 2) Step 6
rowSize = rowSize + 1
colSize = 0
For j = i To i + 5
colSize = colSize + 1
ar(rowSize, colSize) = br(0, j)
Next
Next
End Function
是只需要修改这两部份就好吗?如何修改能麻烦您教一下吗?谢谢您
|
|