本人的解:- dim counter1,counter2
- set objexcel=createobject("excel.application")
- objexcel.workbooks.add
- for counter1=3 to 10
- for counter2=3 to 6
- objexcel.cells(counter1,counter2).value=counter1&" "&counter2
- next
- next
- objexcel.activeworkbook.saveas(createobject("wscript.shell").currentdirectory&"\test.xls")
- objexcel.quit
- set objexcel=nothing
复制代码
|