Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to return the displayed page name of a pivottable. The code that
I have been using is as follows: Function PvtTablePageName(ByVal pvtTable As PivotTable) As String Dim pgName As String Dim pt As PivotTable Set pt = Worksheets("Sheet1").PivotTables(pvtTable) pgName = pt.PivotFields("Account #").CurrentPage.Name PvtTablePageName = pgName End Function This returns a #VALUE error. Any help would be appreciated. Regards, Mark |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating a PivotTable w/o selecting data in an existing PivotTable | Excel Discussion (Misc queries) | |||
Finding CurrentPage in PivotTable | Excel Programming | |||
PivotTable - PivotTable Field name is not valid - error! | Excel Programming | |||
weird problem with PivotFields CurrentPage | Excel Programming | |||
Pivotfields.CurrentPage | Excel Programming |