I have a following code in QTP:
Dim objexcel
Set objexcel = createobject("Excel.application")
objexcel.Visible = True
objexcel.Workbooks.Add
objexcel.Cells(1,1).Value = "ABCDE"
objexcel.ActiveWorkBook.SaveAs("J:\Test.xls")
How do I close the file and delete it, I tried many ways but I am ending up getting object error.
Thanks in advence