This script will insert row nn1 from Data1 at the selected row in the active worksheet. It shifts all data in the active worksheet down a row first to make room for the new row. Of course all columns in the active worksheet must contain the same number of rows.nn2=wks.r1;
get col(1) -e npt;
set %H -er (npt+1);
del tmp; tmp=data(nn2,npt);
loop (ii,1,wks.ncols) {
copy -b nn2 wcol(ii) tmp -b 1 -e (npt-nn2+1);
copy -b 1 tmp wcol(ii) -b (nn2+1) -e (npt+1);
wcol(ii)[nn2]=%(Data1,ii,nn1);
};
del tmp;
Is that the sort of thing you're looking for? It shouldn't be too hard to modify the script to insert multiple rows.
Mike Buess
Origin WebRing Member