+ Reply to Thread
Results 1 to 8 of 8

Match columns in two workbooks

  1. #1
    Registered User
    Join Date
    08-15-2009
    Location
    Dubai
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    12

    Match columns in two workbooks

    Need a help below macro, when I run macro get an error

    The code will go through each line of data checking to see if it can find a match. If not, the cells will be highlighted yellow. It checks from both sides, first checks sheet 1 compared to sheet 2, then sheet 2 compared to sheet 1. That should encompass the variations between the 2 sheets.

    sample attached

    Help will be appreciated

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Match columns in two workbooks

    Hello sibyxa,

    Your workbook is in Excel 2007, but your profile says you are using Excel 2003. Can you post a copy of the workbook in Excel 2003 format? You'll more an answer faster.

    If you are using both 2007 and 2003, please update your profile. It helps to know which versions you are using when asking and answering questions.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    Re: Match columns in two workbooks

    HI
    Attached file has a macro which matches sheet1 with sheet2 and vice versa
    Ravi
    Attached Files Attached Files

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Match columns in two workbooks

    Try this instead, a little more concise, I think:
    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 08-26-2009 at 02:08 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Registered User
    Join Date
    08-15-2009
    Location
    Dubai
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    12

    Re: Match columns in two workbooks

    Wow! It worked perfectly

    Thank you Friends

    Leith Ross, I have updated my profile, changed to 2007

    Ravishankar, thanks for your great help

    JBeaucaire, thanks for your great work

    Once again, thanks for all the help provided

  6. #6
    Registered User
    Join Date
    08-15-2009
    Location
    Dubai
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    12

    Re: Match columns in two workbooks

    How can I change this to "Solved" ?

  7. #7
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Match columns in two workbooks

    Here is how to Mark your Post Solved:

    How to mark a thread Solved
    1. Go to the first post #1
    2. Click Edit
    3. Click Go Advanced
    4. Just below the word Title you will see a drop down with (no prefix)
    5. Change to [Solved]
    6. Click Save
    Last edited by Leith Ross; 08-26-2009 at 08:50 PM. Reason: Removed part of the canned reply

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Match columns in two workbooks

    Leith, I believe he indicated the solution Ravi or I provided was usable.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1