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 ? | 5 Yes | 0 No |
Post New Answer View All Answers
Why qtp the best testing tool?
How to modify object property in qtp ?
Is it possible to split an action? How?
How to execute a winrunner script in quicktest professional (qtp)?
What are the features and benefits of quick test pro (qtp 8.0)?
How to create scenario selector
How do you configure QTP AND Test director?
what is the difference between modular framework & datadriven framework
Hi Friends this is kumar i would like to request to all of you ,please help me to explain real time project with using qtp scripts i know basics of qtp but it won't workout on interviews,pls help awating to reply.
what is test scheduleling?
WAT IS DATA BASE AND XML CHECK POINT ?HOW TO IMPLEMENT IT ... GIVE PROPER EXAMPLE FOR IT
Why script error occur in between recording in qtp?
Explain the types of object repositorys in qtp?
For which type of project the iterative model is suitable?
how interviews will be on QTP?