Hello tongy66086,
The attached workbook will automatically total the part numbers and place the quantity, part number, and description onto the total worksheet. The following code modules are in the project. Module1 contains the macro GetTotals. The other other two module Class modules create an new collection object called PartNumbers and a new object called PartNumber. I added a button to run the macro on the Total worksheet.
Module1 code
PartNumber Class Module Code
PartNumbers Class Module Code
Sincerely,
Leith Ross
Bookmarks