Luis Diaz
asked on
Excel VBA: compare rows by rows v3
Hello experts,
I have the following procedure reported at:
https://www.experts-exchange.com/questions/28997130/VBA-Compare-columns-row-by-row-based-config-sheet-v2.html
that I would like to use as a reference in order to cover the following requirement:
1-Perform comparison row by row based on fields reported in 1-Configuration sheet
2-Highlight the one’s that don’t match in red
3-Report the number of rows which don’t match in False related column and the one's which match in True related column
Additional information:
Check configuration should be simplified as following:
If an error is found in the configuration sheet exit sub and display msg:
Unable to proceed check that your config sheet is properly set up
I attached dummy file
If you have questions, please contact me.
Compare-columns-based-on-range-name.xlsx
I have the following procedure reported at:
https://www.experts-exchange.com/questions/28997130/VBA-Compare-columns-row-by-row-based-config-sheet-v2.html
that I would like to use as a reference in order to cover the following requirement:
1-Perform comparison row by row based on fields reported in 1-Configuration sheet
2-Highlight the one’s that don’t match in red
3-Report the number of rows which don’t match in False related column and the one's which match in True related column
Additional information:
Check configuration should be simplified as following:
If an error is found in the configuration sheet exit sub and display msg:
Unable to proceed check that your config sheet is properly set up
I attached dummy file
If you have questions, please contact me.
Compare-columns-based-on-range-name.xlsx
ASKER
Thank you Subodh, Almost perfect. Possible to add an additional check for field names. Currently in the procedure if I enter a wrong field column msgbox with exit sub is not displayed.
Thank you in advance for your help.
Thank you in advance for your help.
It's already there. Look at the lines 24:30.
Just replace the line#27 with the following line...
Just replace the line#27 with the following line...
ElseIf ColRng2 Is Nothing Then
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Tested and it works! Thank you very much for your help!
You're welcome!
Open in new window