I will have a table and I'll apply subtotals to it.
I want a macro to find the Commodity Totals and copy those two cells and also the data in the cell to the right and top. Like so:
-------A------------------------B--------------------------C-------
Commodity-----------------#'s-----------------------Price-----
----Cans------------------12------------------------------15.99----
----Cans------------------32------------------------------15.99-----
----Cans------------------78------------------------------15.99----
CANS TOTAL---------122------------------------------ ---------
----Boxes------------------10------------------------------5.99----
----Boxes------------------20------------------------------5.99-----
----Boxes------------------15------------------------------5.99----
BOXES TOTAL---------45------------------------------ ---------
So, the macro should find the total generated by the subtotals button, copy CANS TOTAL, 122 and the value in C4 (15.99) paste it in Worksheet1, then go on and find the next total until it runs out of totals to copy.
I want a macro to find the Commodity Totals and copy those two cells and also the data in the cell to the right and top. Like so:
-------A------------------------B--------------------------C-------
Commodity-----------------#'s-----------------------Price-----
----Cans------------------12------------------------------15.99----
----Cans------------------32------------------------------15.99-----
----Cans------------------78------------------------------15.99----
CANS TOTAL---------122------------------------------ ---------
----Boxes------------------10------------------------------5.99----
----Boxes------------------20------------------------------5.99-----
----Boxes------------------15------------------------------5.99----
BOXES TOTAL---------45------------------------------ ---------
So, the macro should find the total generated by the subtotals button, copy CANS TOTAL, 122 and the value in C4 (15.99) paste it in Worksheet1, then go on and find the next total until it runs out of totals to copy.