If you have multiple PivotTables in your workbook, each connected to a different data source, and you want to change the data source for all of the PivotTables at the same time, you can do so by editing the connection information for the workbook as a whole. Here's how:
In the File name box, enter the path and file name of the new data source to which you want to connect all of the PivotTables in your workbook. You can also click Browse to locate and select a file.
Note: If you're using an Office Data Connection (.odc) file or an Office Data Connection Library (.odc) file as your data source, you can't change it by using this method. Instead, use one of the following methods: