[英]Making a Multi-line Array in Excel VBA?
我正在嘗試制作多行數組變量,但是由於某些原因它無法正常工作,而且我無法弄清楚我在做什么錯...
以下數組可以正常工作:
aInter = Array("Item 1", "Item 2", "Item 3", "Item 4", "Item 5")
但是,當我嘗試使用行連續符& _
制作多行數組時,它不會讓我
我嘗試了各種方法:
aInter = Array("Item 1", "Item 2", "Item 3" & _
"Item 4", "Item 5")
aInter = Array("Item 1", "Item 2", "Item 3", ) & _
("Item 4", "Item 5")
aInter = Array("Item 1", "Item 2", "Item 3") & _
("Item 4", "Item 5")
正確的做法是什么?
正確的方法是:
aInter = Array("Item 1", "Item 2", "Item 3", _
"Item 4", "Item 5", _
"Item 6", "Item 7")
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.