Hi,
You can first copy all the last column to a newly created workbook by using the colcopy X-Function. And then use the w2m X-Function to convert this workbook to the matrix. For example:
newbook result:=bn$; // create a new workbook
num = 4; // number of columns to copy
wks.nCols = num;
for(ii=1; ii<=num; ii++)
{
colcopy irng:=[Book$(ii)]Sheet1!Col(1) orng:=[bn$]Sheet1!$(ii);
}
w2m iw:=[bn$]sheet1! om:=[mbook1]msheet1!mat(1);
Penn