Dim excel_app As Excel.Application
Dim excel_sheet As Excel.Worksheet
Set excel_app = CreateObject("Excel.Application")
excel_app.Workbooks.Add '可以加名称,添加的次数同报表的表单数。
Set excel_sheet = excel_app.Sheets("Sheet1")
'下面就可以写入到excel里 了。大致为:
excel_sheet.Cells(3,B)="xxx" '水晶报表对应数值。
excel_app.Quit
Set excel_sheet = Nothing
Set excel_app = Nothing