Consulting

Results 1 to 6 of 6

Thread: Solved: compare worksheets

  1. #1
    Banned VBAX Regular
    Joined
    Mar 2007
    Posts
    41
    Location

    Solved: compare worksheets

    I am facing an issue in comparing two worksheets.
    The scenario is I have two worksheets 1) Master 2) Sheet2
    I would like to compare these two sheets and need a new sheet that contains records which are not common in both the sheets. I do not need records which are same in both sheets.

    I have a macro for that and when I rn the same I got wrong output. Pls see sheet ?New? that contains the output of the macro that I ran.

    Also attaching the same macro code in txt file.

    Pls help ?.

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Have a look at this post
    Instead of deleting, you could cut and paste the rows. I'll check out your own code later.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3

  4. #4
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Hi Shane,
    Please read this.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  5. #5
    Administrator
    Chat VP VBAX Guru johnske's Avatar
    Joined
    Jul 2004
    Location
    Townsville, Australia
    Posts
    2,872
    Location
    Copy ALL data from both sheets to your new sheet and apply special filter to the new sheet to remove duplicates. Example code here
    You know you're really in trouble when the light at the end of the tunnel turns out to be the headlight of a train hurtling towards you

    The major part of getting the right answer lies in asking the right question...


    Made your code more readable, use VBA tags (this automatically inserts [vba] at the start of your code, and [/vba ] at the end of your code) | Help those helping you by marking your thread solved when it is.

  6. #6
    Banned VBAX Regular
    Joined
    Mar 2007
    Posts
    41
    Location

    My Apologies

    Thanks guys for ur assistance. n a BIG sorry for cross posting. My only intetion was to get the quick reply as at that time i was in gr8 trouble.
    Thanks anyways

    Best Regards.

Posting Permissions

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