+ Reply to Thread
Results 1 to 3 of 3

Modified compare and delete across sheets

  1. #1
    Forum Contributor
    Join Date
    04-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    496

    Modified compare and delete across sheets

    Hello again. StephenR provided this and after some testing, I found I needed to adapt it a bit. This compares cells in every sheet to a master sheet "AllUnits" and deletes all the matched rows on the Master. I modified it slightly to also delete the matched row on the source sheet as well (looking for rows that are not matched on any sheet). This works to a point, but I have to re-run it many times since when the source row is deleted, the code actually skips to the next row. I tried to reset the source variable with

    Please Login or Register  to view this content.
    in the hopes that it would allow the code to function, but it did not. I think it would work if the code started at the last row and went up instead of down, but I have not been able to figure it out.

    Thanks in advance,
    Andrew

    Please Login or Register  to view this content.
    Last edited by drewship; 11-04-2009 at 10:38 AM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Modified compare and delete across sheets

    Andrew - modified slightly, you're right that it's better to start at the bottom and work up. This deletes everything though!
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    04-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    496

    Re: Modified compare and delete across sheets

    Thanks!! I hate to say it does everything I need because I will probably find another use for a modified version, but for the moment, it does everything I need. I now have a way to compare multiple sheets quickly to find discrepancies without the possibility of multiple duplicates confusing the issue.

    You are most certainly a wizard!!

+ 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