Hi Asen,
Maybe there is some thing wrong with the range definition. Substitution notation is needed here. You can try the following script.
win -t d 123 data1;
for(ii=1;ii<6;ii++)
{
range wksrange = [data1]1!$(ii); // need $() substitution,
// can also use no substitution like that: range wksrange = [data1]1!wcol(ii);
//type "$(ii)";
for(jj=1;jj<250;jj++)
wksrange[jj]=jj;
}
To make the command finished before the next, you can use the second command to pause for the specified number of seconds.
Penn