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

What does it mean when a check point is in red color? What do you do?

568


How is a Step generator used in UFT?

661


On what document base Descriptive programming is written if build is not yet ready ?

876


What are the different properties of an web object

1428


Step 3&4 are repeated until an the object in recognised uniquely.

1524






What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????

1721


Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance

1525


Is virtual object supported in low level recording mode?

623


How to attach a file to TD?

658


How do I lauch my test website using code from qtp in different environmet, uat and PPTE?

1461


How to execute a winrunner script in quicktest professional?

556


What is the extension of qtp local repository?

576


When should I use smart identification?

604


How do you perform Regreession Testing?

1463


How will you test a keyboard?

601