Hi Pavel.Bolshakov
To perform the script with a loop, you can use the column index instead of column name,
and the layer index instead of layer name. Can you try the following snippet?wbn$="StressW80L40"; //Book name
ns=page.nlayers; //Original number of sheets
page.nlayers=ns+1; //Update number of sheets
layer$(ns+1).name$="Test"; //New sheet name
for(ii=1; ii<=ns; ii++) { //Loop over sheets
colcopy irng:=[%(wbn$)]$(ii)!col(1) orng:=[%(wbn$)]%(layer$(ns+1).name$)!wcol(ii+1);
}
Did it work?
--Hideo Fujii
OriginLab