BUYSHEET TEST.xlsm
EDIT: Use this sample workbook to see what I would like the final product to look like
I have an extremely annoying macro that I am trying to fix (it was written in 2001).
What happens is that it organizes the rows by alphabetical order (according to the value in column A). For example: all "Bolts" will be grouped and their associated costs with them. Below that will be 'Nuts' and below that 'Washers'.
Then it is supposed to insert a row and sum the total of that item. For example: 8 rows of bolts with their item costs a row of the total costs of those rows, then 4 rows of nuts with their item costs and a rows of the total....... so on and so forth.
The code that was written uses the following syntax and I believe there has to be a much easier way (with a lot less selecting) to write it.
This also hasn't worked flawlessly. There are several times that the sum formulas don't grab all of the values needed and also sometimes grabb too many values (the rows of the other items).
I know the macro is lengthy but it is repetitive so there has to be a better way. Any ideas?
Bookmarks