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


Please Help Members By Posting Answers For Below Questions

Discuss quicktest professional (qtp) environment?

578


what are the frame work models of qtp?which frame work you follow in your company?and explain it process?

1967


What are main panes available in qtp test browser?

542


How many types of recording modes in qtp?

589


How to find a window is minimized or not

1448






Hi All, How to Compare two strings character by character in QTP

954


For which type of project the iterative model is suitable?

1386


What are the views available in quicktest professional (qtp)?

575


What is the difference between Keyword Driven test and Data Driven test?

1773


Hi ,Can any one pleas explain how to test splash objects using QTP?

1909


In qtp, explain what is crypt object

601


what is the difference between data driver & data driven and driver script?

2140


Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers

1579


Hi All, I need code for how to execute qtp scripts from excell sheet

1466


how to prepared for first for the first interview?

1799