Say I have a 2D array,
dim iArray(1 to 2, 1 to 2) as integer
iArray(1,1)=1: iArray(1,2)=2: iArray(2,1)=3: iArray(2,2)=4
'iArray = 1 2
' 3 4
and I want to cut one of the dimensions out.
In Matlab, you could:
%Matlab style:
cutArray = iArray(:,2)
%cutArray = 2
% 4
Is there an easy way to do this in VBA?