|
-
Dec 3rd, 2011, 05:03 PM
#1
Thread Starter
Addicted Member
Extracting columns from multidimensional arrays
If I have a two-dimensional array and it has assigned the values of a two-dimensional range, is there any way I do something to a whole row of column, whithout using a loop?
For example
Dim myArray(), myVector()
ReDim myArray(1 To 100, 1 To 3)
ReDim myVector(1 To 100)
' Copy column 2
For i=1 To 100
myVector(i)=myArray(i,2)
Next i
Why can't I just do something like
myVector(1 To 100)=myArray(1 To 100,2)
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|