pivot table cannot update with external data source

dhx10000

Board Regular
Joined
Jul 11, 2005
Messages
144
Hello again,

I have a workbook that contains two pivot tables that reference a sheet from an external workbook. When I try to refresh the pivot table I get an error that says 'Cannot open pivot table source file [excelfileName.xls]Sheet1'.

The thing is, the source file is open, I wrote a macro that automatically opens it. Is there something else I have to do to get this to work?

If I go to the pivot table wizard and look at the range it is referencing it looks like this: [excelfileName.xls]Sheet1!$A:$AB. Both workbooks are in the same directory.

Thank you
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,224,974
Messages
6,182,108
Members
453,088
Latest member
Chaoxite

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