2 Database tables comparission in Excel - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: 2 Database tables comparission in Excel (/Thread-2-Database-tables-comparission-in-Excel) |
2 Database tables comparission in Excel - prasadsbrk - 08-13-2009 HI, I've the QA Data in Shee1 & Prod Data in Sheet 2 of a workbook. Prod has 9 records & QA data has 6 records (missing 2nd, 5th & 8th records). I need to compare both the sheets with corsponding records and highlight the data mismatches as well as records missing. Can any one help me on this. RE: 2 Database tables comparission in Excel - venkatbatchu - 08-13-2009 Hi, Try with the below code u would get expected result.... ---------------------- Code: Set objExcel = CreateObject(”Excel.Application”) RE: 2 Database tables comparission in Excel - prasadsbrk - 08-14-2009 Hi, The same code i'm using & it is comaring Sheet1 Row1 with Sheet2 Row1, Sheet1 Row 2 with Sheet2 Row2, .. so on. But for me Data is in random rows as below Code: Sheet1 Row1 = Sheet2 Row1 .......... like so on But common field is there to (Column A) to know, so using this i need to compare. as below - If <<NO DATA>> highlight the entire row in one color (e.g. Sheet1 in Yellow & Sheet2 in Green) - If DATA Found (with ref. to Column A) and mismatches in other columns highlight in one color (e.g Red) Can any one help me on this. Thanks |