View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
den1s den1s is offline
external usenet poster
 
Posts: 9
Default Accessing a 'column' in a VB array

In VB, how does one access an entire column or row. Let's say I have a
5x2 array and I would like to access all the data in the 1 column (i.e.

(1,1 2,1 3,1 4,1 5,1).

So given a variable defined as,


tempArray(1 To 2, 1 To 5) As Double


how could I access all the 1's column?


I know in Matlab I could use the command,


tempArray(:,1)


not sure the equivalent in Excel.


- Kwaj