Gideon1973
Board Regular
- Joined
- Apr 23, 2012
- Messages
- 126
Hi there!
I have a workbook with dozens of pivot tables defined, and their data sources are set to named ranges in various worksheets within the same workbook.
Due to a change in customer requirements (don't you love those!), I now need to bust the detailed data out into separate workbooks, but the pivot tables need to look at the detailed data in an "external" workbook.
I first select a cell in one of my pivot tables, go to the Options Tab, and Select "Change Data Source". Then, in the "Table/Range" box, it currently has my named range. When I click the button to choose the new data source, I switch windows to reference the other, "external" workbook. When I highlight the cells I'm interested in feeding into the pivot table, and click OK, I get an error indicating "Reference is not valid".
I don't know if I can reference a named range on an external sheet in this way, and that's okay. Ultimately, I think I need to pass in the workbook's path/file name and a named or address range. However, I'm stuck on syntax.
Here are details on the existing and future setup for these objects:
So, my question is is there a way I can manipulate the existing pivot tables to make them point to an external file by changing the data source property? I can maybe do it from scratch, but a lot of time and configuration went into a plethora of pivot tables, and I'd hate to have to do them all over again if I can help it.
I'm using Excel 2007 BTW...
Ideas?
Thanks!
I have a workbook with dozens of pivot tables defined, and their data sources are set to named ranges in various worksheets within the same workbook.
Due to a change in customer requirements (don't you love those!), I now need to bust the detailed data out into separate workbooks, but the pivot tables need to look at the detailed data in an "external" workbook.
I first select a cell in one of my pivot tables, go to the Options Tab, and Select "Change Data Source". Then, in the "Table/Range" box, it currently has my named range. When I click the button to choose the new data source, I switch windows to reference the other, "external" workbook. When I highlight the cells I'm interested in feeding into the pivot table, and click OK, I get an error indicating "Reference is not valid".
I don't know if I can reference a named range on an external sheet in this way, and that's okay. Ultimately, I think I need to pass in the workbook's path/file name and a named or address range. However, I'm stuck on syntax.
Here are details on the existing and future setup for these objects:
- Current Named Range pivot references: =System_Data
- External workbook path: G:\Exports\System_Data_Raw.xlsx
- Worksheet containing data: [System_Data_Raw]
So, my question is is there a way I can manipulate the existing pivot tables to make them point to an external file by changing the data source property? I can maybe do it from scratch, but a lot of time and configuration went into a plethora of pivot tables, and I'd hate to have to do them all over again if I can help it.
I'm using Excel 2007 BTW...
Ideas?
Thanks!