Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

If the data is stored in Excel sheet(2nd and 3rd), how to
access it for Data Driven test;
Ex: table = "c:\demo.xls"
How to access 2nd or 3rd sheet data id demo.xls flie.


Answer Posted / uday kumar. a

Dim excelObj,counter
counter=1
Set excelObj=createobject("Excel.application") 'Excel Object
Set wbObj=excelObj.workbooks.open("c:\demo.xls") 'work bood
object
Set wbs=excelObj.activeworkbook.worksheets("sheet2") 'work
sheet object
while not isempty(excelObj.cells(counter,1))
x=excelObj.cells(counter,1).value
msgbox(x)
counter=counter+1
wend

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get the resolution settings?

1033


What is the use of gui map and what happens when gui map file get loaded?

1213


How you integrated your automated scripts from TestDirector?

1082


What is the difference between gui map and gui map files?

1143


When it is appropriate to change physical description?

1143


How do you maintain the document information of the test scripts?

1055


What is the purpose of regexp_msw_class property?

1132


What are data driven tests?

1157


what is risk?

2589


What is the use of virtual object wizard and how it is used?

1127


What is tsl? What 4gl is it similar too?

1256


What information is contained in the checklist file?

1195


What is the purpose of gui spy?

1278


How to check the background colour of the screen in WR?

1940


i would like to know the steps to write tsl exception and object exception with a simple example

2220