LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Problem with setting Pivot Table data orientation

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Table Data Problem Dave S Excel Discussion (Misc queries) 4 November 9th 06 02:23 PM
Orientation of multiple data items in Pivot table Tim C Excel Discussion (Misc queries) 3 February 2nd 06 01:03 AM
Pivot Table Data Filter Problem Pepikins Excel Discussion (Misc queries) 0 June 16th 05 09:12 AM
Setting default pivot table field setting to "sum" Mr. Moose Excel Discussion (Misc queries) 2 December 21st 04 04:43 PM
Help required with setting up a pivot table with the source on sheet1 to have the pivot table created on sheet called "report" Diana[_5_] Excel Programming 0 August 21st 03 10:19 PM


All times are GMT +1. The time now is 11:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"