View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Mark Mark is offline
external usenet poster
 
Posts: 989
Default setting position of a pivotitem

hello.

I have a pivot table, and need to reset the position of a specific item, in
code.

I was trying to do that before putting the field into the pivot table grid,
so that it doesn't need to recalc afterward.

pvT.PivotFields(arColFields(1)).PivotItems("(blank )").Position = 1

works, after the pivot grid is filled with fields, but not before.

I was able to select/deselect all of the proper items before populating the
pivot grid.

But you can't set positions before filling the grid?

thanks.