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

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,222,228
Messages
6,164,728
Members
451,912
Latest member
HMF009

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