将VBA中多维数组的整个行返回到一维数组 [英] return an entire row of a multidimensional array in VBA to a one dimensional array

查看:643
本文介绍了将VBA中多维数组的整个行返回到一维数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以将多维数组的整个行的值返回到VBA中的一维数组?

Is there any way to return the value of an entire row of a multidimensional array to a one dimensional array In VBA?

arr_1dim = arr_2dim(3,:)是一个matlab表达式,用于一次将arr_2dim数组的第3行分配给arr_1dim.

Something like, arr_1dim = arr_2dim(3,:) is a matlab expression for assigning the row 3 of arr_2dim array to arr_1dim in one single stretch.

Excel VBA中是否有任何类似的更便宜的方法?

Is there any similar less expensive method in Excel VBA?

推荐答案

不存在用于获取行或列的VBA函数.您只能自己写,也可以在这里看看:
http://www.cpearson.com/excel/vbaarrays.htm

No there is no VBA-function to get a row or column. You can only write it yourself, or take a look here:
http://www.cpearson.com/excel/vbaarrays.htm

这篇关于将VBA中多维数组的整个行返回到一维数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆