Littlemalky
Board Regular
- Joined
- Jan 14, 2011
- Messages
- 223
Here's the situation,
I'm using VBA to to paste three columns with a dynamic amount of rows being partnumbers, descriptions, and quantity. I have it xlDown and offset one row to sum that quantity, then I have it offset two rows down to paste another set of data below that, in which; again, I xlDown and offset and sum that portion of the quantities. However, below this second portion of quantities I need to create a "Grand Total" line right below that last quantity that sums the two totals on the page.
If it helps, with the first total, the cell directly to the left of it is entitled, "Total Raw Materials", and the other total is entitled, "Total In-House Blanks". Since all of this is dynamic including the placement of the "Grand Total" line, how do I search for the cell directly to the right of these titles and add it to my grand total sum formula in the cell right below the last total?
I'm using VBA to to paste three columns with a dynamic amount of rows being partnumbers, descriptions, and quantity. I have it xlDown and offset one row to sum that quantity, then I have it offset two rows down to paste another set of data below that, in which; again, I xlDown and offset and sum that portion of the quantities. However, below this second portion of quantities I need to create a "Grand Total" line right below that last quantity that sums the two totals on the page.
If it helps, with the first total, the cell directly to the left of it is entitled, "Total Raw Materials", and the other total is entitled, "Total In-House Blanks". Since all of this is dynamic including the placement of the "Grand Total" line, how do I search for the cell directly to the right of these titles and add it to my grand total sum formula in the cell right below the last total?