setting position of a pivotitem

M

mark

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.
 
Top