Item Method (PivotTables Collection) Example
This example makes the Year field a row field in the first PivotTable report on Sheet3.
Worksheets("sheet3").PivotTables.Item(1) _ .PivotFields("year").Orientation = xlRowField