+ Reply to Thread
Results 1 to 4 of 4

Compare 2 Workbooks and Highlight Differences

  1. #1
    Registered User
    Join Date
    10-18-2010
    Location
    Dayton, OH
    MS-Off Ver
    Excel 2007
    Posts
    2

    Compare 2 Workbooks and Highlight Differences

    I have an excel document that I get each week with a list of all order requests from a customer.

    Columns are as follows
    PO#, Material, Description, Delivery Date, Qty, Customer Comment

    Each week the new excel sheet may have delivery date changes or qty changes for a PO# or a line may have been deleted.

    What I would like to do is have a fairly simple way to compare each sheet whether with a function or some programming that would highlight whether any cell has been changed in each row or somehow show whether a line has been deleted or added.
    The problem I am having is there is no unique identifier for each row.
    The PO# may be in multiple times.

    Any ideas on how I could go about this? I don't know VBA that well.
    I am using Excel 2007. I have another user on Excel 2003 that would benefit with a solution on this as well.

    There is a similar post here, only I need to detect row deletions AND additions

    Any help would be very helpful!

    Regards,

    LM
    Last edited by LabanM; 10-18-2010 at 04:49 PM. Reason: Added Excel version info

  2. #2
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: Compare 2 Workbooks and Highlight Differences

    I guess your objective is to run a comparison to a previously backed up copy of the target workbook or to a copy of the similar workbook that you are sure it hasn't been changed.

    Have you taken a look at the Track Changes feature in excel. Not quite sure when you can find it on xl07 but F1 can tell you.

    Or you can look at this: http://www.ozgrid.com/VBA/track-changes.htm
    or this:http://www.excelforum.com/excel-prog...worksheet.html

    Remember to do a search first before posting; these guys, besides willingly trying to help you, have a job they are accountable to as well
    Ron
    Knowledge is knowing that a tomato and pepper are fruits. Wisdom is knowing whether to put these in a fruit salad

    Kindly

    [1] Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
    [2] Mark your post [SOLVED] if it has been answered satisfactorily by editing your original post in advanced mode.
    [3] Thank (using the little scale) those that provided useful help; its nice and its very well appreciated

  3. #3
    Registered User
    Join Date
    10-18-2010
    Location
    Dayton, OH
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Compare 2 Workbooks and Highlight Differences

    Quote Originally Posted by ron2k_1 View Post
    I guess your objective is to run a comparison to a previously backed up copy of the target workbook or to a copy of the similar workbook that you are sure it hasn't been changed.

    Have you taken a look at the Track Changes feature in excel. Not quite sure when you can find it on xl07 but F1 can tell you.

    Or you can look at this: http://www.ozgrid.com/VBA/track-changes.htm
    or this:http://www.excelforum.com/excel-prog...worksheet.html

    Remember to do a search first before posting; these guys, besides willingly trying to help you, have a job they are accountable to as well
    Thanks for your reply.

    The track changes feature is available in Excel 2007. However this will not work for me as I get a new excel document from our customer every week.

    I do not need to track user changes on one workbook, But need to compare workbook from 1 week prior with the current weeks workbook and see what has been changed on each line or if a line has been added or deleted.

    I'm not sure that this will be possible without some very advanced VBA.

  4. #4
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: Compare 2 Workbooks and Highlight Differences

    I see! However, as far as my knowledge goes changes on a given spreadsheet (without a soft log on the same workbook) are stored inhouse, ie. on the local computer in which the changes are effected. That is the reason why you cannot Undo on a recently opened workbook, the history is cleared once the workbook is closed. I'm a real rookie in VBA, but hopefully you find help here...

    However, why would it be hard that you use the above tools, save them on a workbook and you re-send them to you customers to replace their copy? So that when it returns to you (and all subsequent copies) it'll have the code or tool enabled so that you can track changes. You'll have to do something similar anyways if these guys provide you with a piece of code, which probably will be similar to the above, cause, I may be wrong, but it will be really difficult, if not impossible , to have a tool on your computer that can tell you that on a recently received file that has never been on your computer x row or y column with z cell were edited/deleted or added.... Just saying....

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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