View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Grant Grant is offline
external usenet poster
 
Posts: 27
Default Finding CurrentPage in PivotTable

Hi there,

Is there a way to test to see if an Item is in the list of PivotField,
before setting the CurrentPage to that item? The reason I ask is if you don't
check first to make sure the item exists, then set the CurrentPage to the
item you want, it creates that item for you, which is not what I want it to
do.

Cheers,
Grant.

ActiveWorkbook.Worksheets(wkSheet.Name).PivotTable s(pvtTable.Name).PivotFields("Line").CurrentPage = sStr