批量导入excel文件出错:i not found
program error: code follows on the same line as open brace
下面是我的程序:求指点
forvalues i=1 3 to 32{
2. if (i==1&i!=32){
3. import excel "C:\07年\工业企业数据(2007)"+" "+string('i')+"-"+string('i+
> 19999')+"行.xls"}
4. else if(i!=32){
5. import excel "C:\07年\工业企业数据(2007)"+" "+string('i*10000+1')+"-"+st
> ring('i+19999')+"行.xls"}
6. else {import excel "C:\07年\工业企业数据(2007)"+" "+string('i*10000+1')
> +"-"+string('i+16767')+"行.xls"}
7. save 'i'.data,replace
8. }


雷达卡




京公网安备 11010802022788号







