level 7
如图,我想将数组Plan中的Plan(1,1)、Plan(2,1)......Plan(Numz,1)赋值到单元格,从R6开始往右侧这一行
这个代码有什么问题吗?
2023年05月14日 14点05分
1
level 7
Range("R6").Resize(1, Numz) = WorksheetFunction.Transpose(WorksheetFunction.Index(Plan, 0, 1))
2023年05月14日 20点05分
6
![[欢呼]](/static/emoticons/u6b22u547c.png)
感谢大佬
2023年05月15日 04点05分
level 7
index输出列则行参数需为0反之同理 按你描述是将一列数据写入一行则需要转置函数transpose
2023年05月14日 21点05分
7