J
John Calder
Hi
I run Excel 2K
I have a spreadsheet that has data on one worksheet and a Pivot Table in
another worksheet.
I would like to have a macro that copies the Grand Totals of the Pivot table
into another worksheet.
The row Grand Totals of the Pivot Table are on will change depending on a
date range that is entered.
The data that is copied from the pivot table must be copied to the next
available row in the spreadsheet that the data is copied to.
I have tried doing this by recording the macro but when I do the macro
records the actual range of the 1st copy and puts this range in its code.
Then if I try to run the macro again it always goes to the same range whis is
no good if the Pivot table has increased/decreased in size.
The starting cell for the Pivot Table is A10.
The range to be copied will be whatever row the Grand Totals are in and the
columns B,C,D,E & F
So, I guess waht I need is a macro that starts by sending the curser to cell
A10 then sending it down to that last row of the column, then moving across
one cell to the right, then using that cell (?B) and cells in columns C, D, E
& F as the range to be copied, then have the macro copy it to another
worksheet on the next available row. eg;(C20:F20) then the next time the
macro is run (C21:F21) etc
I hope I have explained this ok.
Cheers
John
I run Excel 2K
I have a spreadsheet that has data on one worksheet and a Pivot Table in
another worksheet.
I would like to have a macro that copies the Grand Totals of the Pivot table
into another worksheet.
The row Grand Totals of the Pivot Table are on will change depending on a
date range that is entered.
The data that is copied from the pivot table must be copied to the next
available row in the spreadsheet that the data is copied to.
I have tried doing this by recording the macro but when I do the macro
records the actual range of the 1st copy and puts this range in its code.
Then if I try to run the macro again it always goes to the same range whis is
no good if the Pivot table has increased/decreased in size.
The starting cell for the Pivot Table is A10.
The range to be copied will be whatever row the Grand Totals are in and the
columns B,C,D,E & F
So, I guess waht I need is a macro that starts by sending the curser to cell
A10 then sending it down to that last row of the column, then moving across
one cell to the right, then using that cell (?B) and cells in columns C, D, E
& F as the range to be copied, then have the macro copy it to another
worksheet on the next available row. eg;(C20:F20) then the next time the
macro is run (C21:F21) etc
I hope I have explained this ok.
Cheers
John