I am working on a macro that will compare multiple Bill of Materials for work.
I have included a small section of my spreadsheet after I have performed several operations on it already and this is where I get stuck on a decent way to proceed.
Background:
Each usage starts as a separate sheet with its corresponding BOM.
Copy each BOM onto the same (Master) Worksheet.
Sort by Part Number (ascending), UPC (Ascending), and Usage (Ascending)
I need to compare each line to ensure that the Part Number, UPC, FNA, and QTY are the same. If they are I want to condense the line up to have x marks in the line for the first occurrence of that Part/UPC/FNA/QTY combination.
I am attempting to rewrite this macro because it was only capable of comparing 10 usages in the beginning. I am trying to make it variable so that it can compare any number of usages. I currently have it set to determine how many usages there are by performing a count of the worksheets contained in the workbook.
Any help would be greatly appreciated.
If need be, I can provide the code that was used to get this far, and I can also provide the code for how it used to be compared and condensed.
I Have attached a before and after example of what I am looking at and what I am trying to do.
Writing this in Excel 2003 BTW.
Thanks
Rick
Bookmarks