ActiveView Property Example

This example inserts two field sets in the active view.

Set view = PivotTable1.ActiveView
view.ColumnAxis.InsertFieldSet view.FieldSets("Store Type")
view.RowAxis.InsertFieldSet view.FieldSets("Promotions")