Pivot automation

narendramaruti

New Member
Joined
Dec 21, 2009
Messages
4
Hi,

I am working on automation of an excel report, say the ReportExcel.xls. The data for this report is from a pivot that is present in another excel , say PivotExcel.xls. Right now we are manually copying data from PivotExcel to ReportExcel every month. When we are copying from PivotExcel to ReportExcel, we need create custom groupings, arrange the pivot items in a format to copy paste the values to ReportExcel.

To automate this step i did the following:
1) recorded a macro to group and arrange the pivotitems for the required format,copy Range(B16:C26) , say macro ArrangePivot()
2) From ReportExcel.xls i am opening the PivotExcel.xls file and then running ArrangePivot()
and pasting the selected Range(B16:C26) to ReportExcel.xls

But the problem in this procedure is , i am expecting the pivot should be in particular arrangement when each month you opened PivotExcel.xls or may fail when any of pivot items are re-arranged already by the time you opened.

Can any of you please advice how to automate this step in a more robust manner ?

Thanks,
Nmk
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top