Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'm trying to just view the current external data source of an Excel pivot
table. I can find the path to the Access database and the name of the database, but I can't find the name of the table or query which actually forms the basis for the pivot table. From reading prior posts, I tried using the VBA command MsgBox ActiveWorkbook.PivotCaches(1).SourceDataFile (or CommandText) but this just tells me the path and database name again, not the table/query name. Is there a way to get this information? Thank you. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Go to the Data tab, and click on Connections. Find the connection
you're looking for, click Properties, go over to the Definition tab, and look in the Command Text box. On Jan 10, 10:13 am, Marc Forget wrote: I'm trying to just view the current external data source of an Excel pivot table. I can find the path to the Access database and the name of the database, but I can't find the name of the table or query which actually forms the basis for the pivot table. From reading prior posts, I tried using the VBA command MsgBox ActiveWorkbook.PivotCaches(1).SourceDataFile (or CommandText) but this just tells me the path and database name again, not the table/query name. Is there a way to get this information? Thank you. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks. I actually found it through the PivotTable Tools Options tab by
clicking on Change Data Source and Connection Properties. Your suggestion works also, but if there are many connections on the workbook, it may not be obvious which connection to look for. "iliace" wrote: Go to the Data tab, and click on Connections. Find the connection you're looking for, click Properties, go over to the Definition tab, and look in the Command Text box. On Jan 10, 10:13 am, Marc Forget wrote: I'm trying to just view the current external data source of an Excel pivot table. I can find the path to the Access database and the name of the database, but I can't find the name of the table or query which actually forms the basis for the pivot table. From reading prior posts, I tried using the VBA command MsgBox ActiveWorkbook.PivotCaches(1).SourceDataFile (or CommandText) but this just tells me the path and database name again, not the table/query name. Is there a way to get this information? Thank you. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I like to give connections meaningful names, so that I can distinguish
them. But you're right, it can get quite confusing! On Jan 10, 2:31 pm, Marc Forget wrote: Thanks. I actually found it through the PivotTable Tools Options tab by clicking on Change Data Source and Connection Properties. Your suggestion works also, but if there are many connections on the workbook, it may not be obvious which connection to look for. "iliace" wrote: Go to the Data tab, and click on Connections. Find the connection you're looking for, click Properties, go over to the Definition tab, and look in the Command Text box. On Jan 10, 10:13 am, Marc Forget wrote: I'm trying to just view the current external data source of an Excel pivot table. I can find the path to the Access database and the name of the database, but I can't find the name of the table or query which actually forms the basis for the pivot table. From reading prior posts, I tried using the VBA command MsgBox ActiveWorkbook.PivotCaches(1).SourceDataFile (or CommandText) but this just tells me the path and database name again, not the table/query name. Is there a way to get this information? Thank you. |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'll try to encourage my co-workers to use meaningful connection names also!
Thanks again. "iliace" wrote: I like to give connections meaningful names, so that I can distinguish them. But you're right, it can get quite confusing! On Jan 10, 2:31 pm, Marc Forget wrote: Thanks. I actually found it through the PivotTable Tools Options tab by clicking on Change Data Source and Connection Properties. Your suggestion works also, but if there are many connections on the workbook, it may not be obvious which connection to look for. "iliace" wrote: Go to the Data tab, and click on Connections. Find the connection you're looking for, click Properties, go over to the Definition tab, and look in the Command Text box. On Jan 10, 10:13 am, Marc Forget wrote: I'm trying to just view the current external data source of an Excel pivot table. I can find the path to the Access database and the name of the database, but I can't find the name of the table or query which actually forms the basis for the pivot table. From reading prior posts, I tried using the VBA command MsgBox ActiveWorkbook.PivotCaches(1).SourceDataFile (or CommandText) but this just tells me the path and database name again, not the table/query name. Is there a way to get this information? Thank you. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
View Pivot Table Source Data | Excel Discussion (Misc queries) | |||
Selected Columns to be Used in External Data Source in Pivot Table | Excel Discussion (Misc queries) | |||
DATE FORMAT IN PIVOT TABLE FROM EXTERNAL DATA SOURCE | Excel Discussion (Misc queries) | |||
Pivot Table Data Source external excel file | Excel Discussion (Misc queries) |