1.How to find in which row or column,string "Hyderabad"
exist in excel sheet?
2.How to find how many times character "a" repeated in a
given string "Koteswararao"

Answer Posted / lakshmi

Set ObjExcel=CreateObject("Excel.Application")
ObjExcel.Workbooks.Open("C:\Find.xls")
Set Obj=ObjExcel.Sheets.Item(1)
rowcount=Obj.usedrange.rows.count
colcount=Obj.usedrange.columns.count
For i=1 to rowcount
For j=1 to colcount
Aval=Obj.Cells(i,j)
If StrComp(Aval,"HYDERABAD")=0 then
MsgBox "Location Is : ("&i&","&j&")"
Exit For
Exit For
End If
Next
Next

Please let me know if you have simplest answer than this.

Thx

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi i want license key for qtp 9.2 pls its adjust product name : quick test professional locking code :8 - 54A6A license type : seat license maintenance number : 88888888-8888 pls send license key to my email id borusu.ramkumar@gmail.com

3694


Can we create a qtp test from qc?

582


How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?

564


Explain the qtp test phases.

610


What is environment variable in qtp and why to use it?

541






Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?

1466


what type of framework u r using in ur organization

1640


What are the properties you would use for identifying a browser and page when using descriptive programming?

622


What is the extension of the recovery scenario file in qtp?

532


Describe synchronization point.

571


Can we run test with out adding object in object repository? How it is possible?

538


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?

523


Explain how you can find the absolute value of the number in qtp?

643


If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?

577


How to use setroproperty?

564