Hi,
There is a Pivot Table on the "OT" Sheet and I want to change it from another sheet.
For example, I can use the following command while on the "OT" sheet. However, I need a similar code to do the same thing from another sheet.
With ActiveSheet.PivotTables("PivotTable1").PivotFields("UKod")
.Orientation = xlRowField
.Position = 2
End With
There is a Pivot Table on the "OT" Sheet and I want to change it from another sheet.
For example, I can use the following command while on the "OT" sheet. However, I need a similar code to do the same thing from another sheet.
With ActiveSheet.PivotTables("PivotTable1").PivotFields("UKod")
.Orientation = xlRowField
.Position = 2
End With