Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Does anyone know why Excel can't set the orientation of a
data field when after several row fields have been set? I am getting an error: -------------------------------- Run-time error '1004': Unable to set the Orientation property of the PivotField class -------------------------------- when I do the following. ======================== ActiveSheet.PivotTables("PivotTable1").AddFields RowFields:=Array( _ "AcctSt", "AcctCity", "Account", "Class", "Item", " Data") With ActiveSheet.PivotTables("PivotTable1").PivotFields ("Units Available") .Orientation = xlDataField .Position = 1 End With ActiveSheet.PivotTables("PivotTable1").PivotFields ("Units To Ship").Orientation = xlDataField ======================== The last statement gives the error. I reduce the number of fields that the first statement sets and it works. Then I have to set the RowFields later. I don't see any limits on the Help Screen about the AddFields. Any suggestions? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pivot Table Data Problem | Excel Discussion (Misc queries) | |||
Orientation of multiple data items in Pivot table | Excel Discussion (Misc queries) | |||
Pivot Table Data Filter Problem | Excel Discussion (Misc queries) | |||
Setting default pivot table field setting to "sum" | Excel Discussion (Misc queries) | |||
Help required with setting up a pivot table with the source on sheet1 to have the pivot table created on sheet called "report" | Excel Programming |