import console;
import godking.libxl
var book = godking.libxl.open("\res\5-1#\1.1、5-1#管内穿线和槽盒 检验批表头.xls")
var sheetName = book.getSheetNames("\res\5-1#\1.1、5-1#管内穿线和槽盒 检验批表头.xls")
num = #sheetName
for(i=1;num;1){
console.log(#sheetName)
book.delSheet(i)
console.log("删除表"+i)
}
var newsheet={"x1","l2","oo3","t4","p5","n6"}
for(i=1;#newsheet;1){
book.addSheet(newsheet[i],0)
console.log("新增表"+newsheet[i])
book.addSheet()
}
console.pause(true);
book.save("d:\test.xls")
book.close()
import process
process("d:\test.xls")