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 / raju
Set xl = CreateObject("Excel.Application")
set xlwbook = xl.Workbooks.Open(Excel Path)
Set xlWS = xlwbook.Worksheets(1)
Set k = xl.Worksheets(1).UsedRange.Find(Value to
Search)
On error resume next
k=k.value
If err.number>0 Then
msgbox "Pass"
else
Flag=0
If flag=0 Then
Status = "Pass"
StepDesc = "The Work Book has the
values "
Else
Status = "Pass"
StepDesc = "The Work Book Does not
has the values "
End If
End If
Set xlWS = Nothing
set xlwbook = Nothing
Set xl = Nothing
Please let me know if it's not working
raju.ippali@gmail.com
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How to import a test case present in ".xls" file to TD under a Test set?
For which type of projects the iterative model is not suitable?
Explain QTP using different development techniques ?
What is the significance of “action 0” in qtp?
what is the difference btn risks & Therads in the Test plan documentation?
can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?
How many scripts did you have?
Is qtp supports uni-code?
i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework
What is CMMP and CMMH?
What is test object model in quicktest professional?
How to find a window is minimized or not
What is the use of running the scripts in Hidden-mode in UFT?
What are the views available in quicktest professional (qtp)?
What are the types of environment variables in qtp?