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

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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