cmp two tables:in VBA

There are two tables with identical columns  - 5 columns each. A column can have text or numbers in them. How do do a compare so that I compare each cell value of table1 to table2 for the same row and column and if there is a difference, I highlight or indicate it in both tables…for example
Please see the attached….how do I do that in vba. Can the same by done via formulas?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RayneAuthor Commented:
actually highlight the difference in the second table is preferred

thank you
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Please find the attached workbook and click on the button "Compare" to compare the data between the two tables. See if this is what you are trying to achieve.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RayneAuthor Commented:
this is amazin, thank you Sire :)
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

[ fanpages ]IT Services ConsultantCommented:
He's a hoot! ;)

I know I am late to the party, but here is a different approach (using Conditional Formatting on the range [J:N]), that does not need any Visual Basic for Applications code (although I appreciate that this was your requirement when posting the question).

The Conditional Formatting in cell [J1], for instance, is: =OFFSET(J1,0,-9)<>J1

However, I acknowledge that you may well just wish to apply from rows 3 onwards.
RayneAuthor Commented:
thank you fanpages :)

This is awesome too, a one liner
[ fanpages ]IT Services ConsultantCommented:
:) You're very welcome, Rayne.
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
You're welcome Rayne! Glad I could help. :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.