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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,214,830
Messages
6,121,835
Members
449,051
Latest member
excelquestion515

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