View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Hans Weustink Hans Weustink is offline
external usenet poster
 
Posts: 6
Default repositioning aging categories in a pivot when present

Hi,

I know how to reposition aging categories within a pivot
by adding the following line:
ActiveSheet.PivotTables("PivotTable1").PivotFields
("Aging").PivotItems( _
"Overdue").Position = 1

But my concern is that the macro won't work if a specific
again categorie isn't available (no data in that
categorie). How can this be solved with a if..then
structure.

Thanks in advance,
Hans Weustink