Hi Adilmeraki,
Please try the following script which produces a summarized new worksheet from the current worksheet. Essentially it's just a loop of the worksheet-reduce columns-merge columns:
nskip=10;
icol=1;
for(ii=1; ii<wks.ncols; ii=ii+nskip) {
wreducecols method:=merge ncols:=nskip merge:=sum start:=icol ow:=ColSummary;
icol=icol+nskip;
}
Hope this works.
--Hideo Fujii
OriginLab