ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Assigning 10x1 array to 2nd collumn of 10x3 array (https://www.excelbanter.com/excel-programming/305507-re-assigning-10x1-array-2nd-collumn-10x3-array.html)

Myrna Larson

Assigning 10x1 array to 2nd collumn of 10x3 array
 
If you read the range into an array in a variant, it's always a 2-dim array,
even though it may have only one row or one column.

There's no comman. You have to use a loop for this.


On Thu, 29 Jul 2004 15:49:45 -0700, "DavidMatthews"
wrote:


How do I assign a 10 row x 1 column range to the 2nd column of a 10 row x 3

column array, in VBA?

(looking for something similar to:

My3ColAry(*,2) = My1ColAry(*)

Is there a command that does this? Do I need to do a loop for each element?
Thank you very much if you can help.




All times are GMT +1. The time now is 05:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com