2.Dim ExcelSheet
Set ExcelSheet = CreateObject("Excel.Sheet")
' Make Excel visible through the Application object.
ExcelSheet.Application.Visible = True
' Place some text in the first cell of the sheet.
ExcelSheet.ActiveSheet.Cells(1,1).Value = "This is column A, row 1"
' Save the sheet.
ExcelSheet.SaveAs "C:\DOCS\TEST.XLS"
' Close Excel with the Quit method on the Application object.
ExcelSheet.Application.Quit
' Release the object variable.
Set ExcelSheet = Nothing作者: kunalex 时间: 2008-1-22 17:31 标题: 补充 第一个调试验成功,第二个不知道为什么有general run sytax作者: gy21st 时间: 2008-1-22 17:47
先要CreateObject("Excel.Application")作者: kunalex 时间: 2008-1-22 18:23 标题: 补充 改成了excel.application,但是ActiveSheet对象无法识别...>-<!作者: xiaoyaoke 时间: 2008-1-22 18:31