将数组名称传递给函数 [英] Passing an array name to a function

查看:86
本文介绍了将数组名称传递给函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi-

我正在使用Excel 2000中的VBA项目。我有一个循环,我想将某个(先前定义的)数组附加到另​​一个数组。

展开 | 选择 | Wrap | 行号

解决方案

展开 | 选择 | Wrap | 行号


一个一般性建议 - 使用 LBound()函数而不是假设所有数组都从零开始。我们中的一些人更喜欢使用对人而不是计算机有意义的数字。



一般建议 - 使用LBound()函数而不是假设所有数组都从零开始。



这是一个很好的建议,出于某种原因,我甚至从未想过使用LBound。感谢。


Hi-
I am working on a project in VBA in Excel 2000. I have a loop in which I want to append a certain (previously defined) array to another array.

Expand|Select|Wrap|Line Numbers

解决方案

Expand|Select|Wrap|Line Numbers


One general suggestion - use LBound() function rather than assuming all arrays start at zero. Some of us prefer to use numbers that make sense to people rather than computers.


One general suggestion - use LBound() function rather than assuming all arrays start at zero.

That''s a great suggestion, and for some reason, I have never even thought of using LBound. Thanks.


这篇关于将数组名称传递给函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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