Hello to anyone reading this! I'm having difficulty writing a macro and was hoping one of you would be generous enough to help me out.
What I'm trying to do:
I am trying to import data to a templated excel sheet and execute a macro that will sort by two columns (A = Item description, H = Tag type), Page break after a change in column H and if there is no change (not all item descriptions have a tag type entry) a break after Column A, and finally a sub total for every break on column H and a Total for every break on column A (using sums from Columns B and O). If possible I'd like to auto adjust for column width and wrap. Please not that the ranges are dynamic, however the column headers will remain in the same order.
This is not functioning as intended as it seems to not total B,O on the page break for column A changes. Ex. column A has the values Plant 1, Plant 2, Plant 3. Column H has values A,B,(Blank). The blanks in H seem to gum up the works and cause the pages to no longer break on changes in A. There are bound to be other issues, I know almost nothing about VBA.
Example file included. (no macros included in file)