|
在一段脚本中,如下:
set srcData = CreateObject("Excel.Application")
srcData.Visible = false
set srcDoc = srcData.Workbooks.Open("D:\QTP\EXCEL\TEMPLATE.xls")
srcDoc.Worksheets("NNISF").Activate
srcDoc.Worksheets("NNISF").Cells(cint(i+1),2).value = "887701"
srcDoc.Worksheets("NNISF").Cells(cint(i+1),6).value = "301"
srcDoc.Worksheets("NNISF").Cells(cint(i+1),7).value = "70"
srcDoc.Worksheets("NNISF").Cells(cint(i+1),12).value = "191601"
srcData.Workbooks.Close
当脚本运行到 srcData.Workbooks.Close ,总是提示是否保存对"TEMPLATE.xls"的更改的对话框
怎么样处理才可以不出现提示框,直接保存 |
|