VBA create pivotcache from another XL file

cferart

New Member
Joined
May 26, 2010
Messages
28
This maybe too ambitious.
I have 2 workbooks.

Workbook A has new data added weekly and Pivot tables refreshed.

I would like Workbook B to refresh its Pivot tables from the data in Workbook A.

I am newish at VBA, I have been trying to work out how to use the PivotCaches.Create method to Get Workbook B to refresh its PivotCache after new data is added to Workbook A.

I wonder if I can in VBA use the PivotCaches.Create and the SourceType xlExternal to set the path to Workbook A eg I:/lis/bus/statistics/busstats.xlxm

I have looked at help and searched the web.. but cannot see how this is done

any help most appreciated.
Thanks
Catherine
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,224,527
Messages
6,179,345
Members
452,907
Latest member
Roland Deschain

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