ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   weird problem with PivotFields CurrentPage (https://www.excelbanter.com/excel-programming/295889-weird-problem-pivotfields-currentpage.html)

Chrysalis

weird problem with PivotFields CurrentPage
 
i wonder why setting CurrentPage property does not work for me. For example, in the active sheet, there is a pivot table called "PivotTable1", with [Customers] as PageField, and some other dimensions and measures. Setting the following statement, returns me an error of "Unable to get CurrentPage property of PivotField class"

ActiveSheet.PivotTables("PivotTable1").PivotFields ("[Customers]").CurrentPage = "(All)

Did i miss anything? should i set something before setting the CurrentPage property? it's weird, how come you all post the examples using the same/similiar statement works for you all but not me?!!

FYI, i am using Excel 2002... Thanks for ya help! =)


All times are GMT +1. The time now is 04:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com