+ Reply to Thread
Results 1 to 5 of 5

Comparing two worksheets and copy non matching rows

  1. #1
    Registered User
    Join Date
    02-23-2011
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    33

    Comparing two worksheets and copy non matching rows

    Hi guys,

    I have this code to compare two worksheets and copy the rows that are missing in the activesheet from the next sheet.

    Please Login or Register  to view this content.

    This code works great BUT here is the tricky thing though that I need your help with.

    if there is a match, I want to copy the values in columns 10 to 14, 16, 19 to 23, 25, 28 to 32 and 34). So the values in the source worksheet ends up in the right column in the destination worksheet.

    i'm attaching a workbook that shows what I mean. All help/ideas is appreciated.


    Looking forward to your help with this issue!
    Attached Files Attached Files
    Last edited by thylander; 07-18-2011 at 09:18 AM.

  2. #2
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Re: Comparing two worksheets and copy non matching rows

    See if this gets you any closer to where you want to be.

    Please Login or Register  to view this content.
    Thank You, Mike

    Some Helpful Hints:

    1. New members please read & follow the Forum Rules
    2. Use Code Tags...Place[code]Before the first line and[/code] After the last line.
    3. If you are pleased with a solution mark your post SOLVED.
    4. Thank those who have help you by clicking the scales at the top right of the post.

    Here...

  3. #3
    Registered User
    Join Date
    02-23-2011
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    33

    Re: Comparing two worksheets and copy non matching rows

    Thanks for the help,

    Easier then I thought

  4. #4
    Registered User
    Join Date
    08-03-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Comparing two worksheets and copy non matching rows

    Hi!

    This macro does almost exactly what I am looking for. But instead of using the active sheet and the one next to it as destination and source, is it possible to use two spesific sheets instead?

    Also, instead of checking the entire sheet can we implement a range i.e. Column A to I. So that the macro only check and insert information from that range?

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Comparing two worksheets and copy non matching rows

    KNevland,

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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