Sub newDelExcel(strFilePath)
' On Error Resume Next
Dim excelSheet,excelBook,fso,strFilePath1
' workspace="E:\QTPscript\SCAP\result"
strFilePath1=strFilePath'workspace & "\" & strFilePath
Set ExcelApp = CreateObject("Excel.Application")
ExcelApp.Workbooks.Add
ExcelApp.Visible = True
Set excelSheet = ExcelApp.ActiveSheet
Set excelBook = ExcelApp.ActiveWorkbook
Set fso = CreateObject("scripting.FileSystemObject")
fso.DeleteFile strFilePath1
excelBook.SaveAs strFilePath1
ExcelApp.Quit
Set ExcelApp = Nothing
Set fso = Nothing
End Sub