Find the 'String' from excel sheet and save to another
sheet.But we don't know the string column number and row number?
Answer Posted / pushkar1206
This is working code. Don't forget to save workbook else nothing will get saved. Code is:
Set obj=createobject("excel.application")
Set obj2=obj.Workbooks.Open("C:UserspushkarDesktopBook1.xls")
Set obj3=obj2.Worksheets("Sheet1")
Set obj4=obj2.Worksheets("Sheet2")
rw=obj3.usedrange.rows.count
clm=obj3.usedrange.columns.count
For i=1 to rw
For j=1 to clm
a=obj3.cells(i,j).value
If strcomp(a,"nature")=0 Then
obj4.cells(1,2)=a
End If
Next
Next
obj2.Save
obj.Quit
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com
1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?
Explain QTP using different development techniques ?
This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10
what is defenetion of kiran can u tell me plz CVS, SVN
In qtp, how you can get the last character from a string?
HOw to add the recovery file at runtime to the test file .
in a web page How to check and display a particular word from a paragraph?
How can we import into Excel "Details" ,"Result" ,"Time" parameters from within a Results Report which is generated after a Run error when a script is executed in QTP? Refer E.g below Status Functionality Description RunDate Fail Login User should be able to Login 12/3/2007 StartTime EndTime Details* 1:31:58 PM 1:32:29 PM (this one i want)
What are the various automation frameworks available in qtp?
banking domain description for software tester for interview
Why we load add-ins in qtp?
What are the types of object repository in qtp?
Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji
What is ObjectParamater?