ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Change Data Source for Multiple Pivot Tables (https://www.excelbanter.com/excel-discussion-misc-queries/211578-change-data-source-multiple-pivot-tables.html)

WolfgangPD

Change Data Source for Multiple Pivot Tables
 
I have multiple pivot tables in one workbook and would like to change the
data source on all of the pivot tables. Is there a way to do this all at
once instead of selecting each table? The data is contained in another Excel
workbook. Thanks!

galimi

Change Data Source for Multiple Pivot Tables
 
You can iterate through, and change, the source using the sourcedata property
for the pivottable.

sheet1.PivotTables(1).sourcedata
--
http://www.ExcelHelp.us

888-MY-ETHER ext. 01781474



"WolfgangPD" wrote:

I have multiple pivot tables in one workbook and would like to change the
data source on all of the pivot tables. Is there a way to do this all at
once instead of selecting each table? The data is contained in another Excel
workbook. Thanks!



All times are GMT +1. The time now is 07:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com