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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,214,913
Messages
6,122,207
Members
449,074
Latest member
cancansova

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