Hi,
You may try to run the following LabTalk command:
int colnum = wks.ncols; // Number of columns for calculation
for ( ii = 1; ii <= colnum; ii++)
{
vmathtool -r 2 ix1:=[Sample]Sheet1!wcol(ii) operator:=div operand:=data ix2:=[Reference]Sheet1!wcol(ii) ox:=[Results]<active>!<new>;
// Sample, Reference are the workbook short names, Results is the destination workbook for results
}
Regards!
Sean
OriginLab Tech. Service