how to open Excel sheet & write in it & save it?

Answer Posted / guest

Set excel = CreateObject ("EXCEL.Application")
excel.Caption = "Test Caption"
excel.Visible = True
Set doc = excel.Workbooks.Add()
Set selection = excel.Selection
With selection
.Cells(1,1).Value = "Test value"

End With
doc.SaveAs("E:\Excel.xls")
excel.Quit

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the quicktest professional (qtp) testing process?

570


What is the synchronization point in qtp?

567


hou can we use vb script in qtp could u tell me breafly

1741


please any one can explain the keyword driven framework. with gmail example.

1629


How to handle Java tree in QTP?

748






How to find the length of the string in qtp?

582


How to replay a script in qtp?

616


In qtp, explain what is keyword driven automation framework?

619


how many maximum number of virtual users we can create?

1572


On the website, the protocol has been changed https: to https what you will do? Tell me your approach?

582


For QTP Test Engineer, What is his contribution to the Project? Means, As as automation test engineer what is his role in the current project?

1747


Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet.

1501


What is object repository in qtp?

561


What is the XML file architecture ?

1555


Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out

1588