09-06-2011, 05:16 AM
Hi Ankesh,
Thanks for replying. Am glad that my query is answered after these many days.
You understood the problem correctly but not exact way.
If I had to assign the values "ABC" or "DEF", it takes more time for me to do that manually and also the data I get is huge. Thats the reason I want QTP to take care of this and automate it completely as I dont want manual work to be done.
FYI: In my datatable the values such as "ABC" or "DEF" itself will be more than 1000 numbers. If I had to go by your method then I just have to enter those values manually 1000 times to assign it to a variable.
I hope you understand what am trying to say.
Please do guide me in automating this.
Thanks and Regards,
- Gump
Thanks for replying. Am glad that my query is answered after these many days.
You understood the problem correctly but not exact way.
Code:
As per my understanding of the explantion u have given, i must say its better for you to compare the each cell value..
Ur code shld be something like this...
a=datatable("A", dtGlobalSheet)
if a="ABC" Then
FYI: In my datatable the values such as "ABC" or "DEF" itself will be more than 1000 numbers. If I had to go by your method then I just have to enter those values manually 1000 times to assign it to a variable.
I hope you understand what am trying to say.
Please do guide me in automating this.
Thanks and Regards,
- Gump