How to retrieve particular cell data in excel sheet ?without importing method.

Answers were Sorted based on User's Feedback



How to retrieve particular cell data in excel sheet ?without importing method...

Answer / uday

The Question is to retrieve a cell value from Excel sheet.

The method which does this is:
XLSheetObj.cells(rowno,colno).value

Is This Answer Correct ?    1 Yes 1 No

How to retrieve particular cell data in excel sheet ?without importing method...

Answer / pravati

set excel=createobject("excel.application")
excel.application.visible=true
excel.workbook.open("path of the excelsheet")
set mysheet=excel.activeworkbook.worksheets("sheet name")
value=mysheet.cells(row no,colmn no).value
msgbox value

Is This Answer Correct ?    0 Yes 0 No

How to retrieve particular cell data in excel sheet ?without importing method...

Answer / ram.polavarapu

'count the number of colums
cc=browser("").page("").webtable("").columcount
'count the number of rows

rc=browser("").page("").webtable("").columcount

for i=1 to rc
for j=1 to cc

'to retrieve all data from excel sheet
n=browser("").page("").webtable("").getcelldata(i,j)
print n

'for example we need to retrieve from 2-row 5-colum
m=browser("").page("").webtable("").getcelldata(2,5)
print m

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More QTP Interview Questions

What are the environment variables?

3 Answers  


My project title is "DRUG Audition and research management" it comes which domain?

4 Answers  


How many ways we can parameterize data in QTP?

6 Answers   Liquid Crystal,


Can any suggest me what is exposure testing?

0 Answers   Value Labs,


What is the difference between shared and local object repository?

0 Answers  






what is the exact testing process in qtp plz explin ?

2 Answers  


What is the Diff between Image check-point and Bit map Check point?

3 Answers   Ordain Solutions,


Does QTP record on Objects created on XWindows Environment?

0 Answers   Infotech,


X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?

0 Answers   Virtusa,


On what basis we select test cases to automate?

0 Answers  


what is test scheduling?

1 Answers  


i need the word "good morning" to be displayed by default whenver we click upon the blank test while opening the qtp. Could you please answer...

7 Answers  


Categories