View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Marc Forget Marc Forget is offline
external usenet poster
 
Posts: 8
Default View pivot table external data source in Excel 2007

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.