Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.charting
|
|||
|
|||
View/Change Pivot Table Query
I am currently using Excel 2003. I would like to look at a PivotTable's SQL
Query, but unsure on how to do this. I did find one posting with a VBA solution, so I tried it. I get the following error: 'Unable to get the Pivot Tables property of the worksheet class' Below is the source code Sub Get_PT_Source_Code() Dim pvtTable As PivotTable Dim index As Integer Set pvtTable = ActiveSheet.PivotTables("PivotTable") With pvtTable.PivotCache Debug.Print .CommandText 'the SQL Query Debug.Print .Connection 'the connection End With End Sub I basically would like to view and maybe change how the pivot table is displaying the data. Any help would be greatly appreciated. Thanks TSharp. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
View Pivot Table Source Data | Excel Discussion (Misc queries) | |||
Make table query will work in datasheet view but will not make tab | Excel Discussion (Misc queries) | |||
Excel 2003 view formula within pivot table | Excel Worksheet Functions | |||
How to view summarized items in a pivot table | New Users to Excel | |||
How do I go from "Chart View" to "Pivot Table Form" in a Pivot ta. | Excel Discussion (Misc queries) |