![]() |
Find matching value between values in 2 tables - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Find matching value between values in 2 tables (/Thread-Find-matching-value-between-values-in-2-tables) |
Find matching value between values in 2 tables - wheelercha - 01-22-2010 I have this script that uses 2 For Loops to loop through the data in one column of one sheet and compare it to the first column of another sheet. Basically it is trying to find a match on the name, if it finds it in the other sheet it continues forward and does other comparisons. The issue is that it's not real fast! Is there an alternate method to compare? Or am I stuck with this. Thanks- Charles RE: Find matching value between values in 2 tables - sreekanth chilam - 01-22-2010 Hi, Please paste your code here, so that we could come back to you with right solution quickly. RE: Find matching value between values in 2 tables - rdemers25 - 01-22-2010 Maybe read each column of the Table into an array and then do the same compare in the arrays. It would probably be a lot less time reading the values from the array vs. the excel file (expecially since it sounds like you are doing it multiple times). RE: Find matching value between values in 2 tables - wheelercha - 01-25-2010 Code: Dim rowcount, i, j, CatMatchFound |