How do you copy a value from a cell in an msexcel sheet saved
on the desktop into QTP's datatable when the co-ordinates of
cell are given?

Answer Posted / pankaj

Call the excel first :
Set xl = createobject("excel.application")
Set wb = xl.Workbooks.Open("D:\test.xls")
Set ws=wb.Worksheets(sheet1)
datatable("Colname","Sheetname")=ws.cells(i,j) ' i and j
'would be known row and col into excel

Try this it will work for more doubt in QTP you can directly
post me question on my blog
http://quality2deliver.blogspot.com

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i need qtp tutorial. pls send it to sridhar.k151@g mail.com

1630


How can you send user defined messages to test report?

577


What is checkpoints for qtp?

523


How many tabs are available in debug viewer pane?

639


How to handle the exceptions using the recovery scenario manager in qtp?

562






How we can import data from database?

643


If you are testing a web application then what will you test in that application?

1530


How did you use regular expressions in QTP and also in WR?

2155


How to create Reusable and Multiple Actions?

1702


What is quick test pro?

583


is there any addin for remedy user application

1738


How to analyzing test results using quicktest professional (qtp)?

576


What are the views available in quicktest professional (qtp)?

565


how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance

1422


Some time when i wanna learn the object i face issue like i am not able learn the object in proper manner... eg:for text bo on web page it should learn as webedit but some times it reads as winobject:internetexpoler-server, because of this i have to uninstall the qtp and re-install it again when i do this it reads the object perfectly.....plz suggest the soln

1384