|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Pivot Table - change the value fields orientation
When I'm creating a Pivot Table and setting the fields orientation and have 2 fields in the data area (look in code snippet below), the output is something like that:
Field 0 "aaa" Sum of Field 1: 500 Sum of field 2: 50 "bbb" Sum of Field 1: 600 Sum of field 2: 55 "ccc" Sum of Field 1: 450 Sum of field 2: 45 I want to be able to change it to this format: Field 0 Sum of Field 1 Sum of Field 2 "aaa" 500 50 "bbb" 600 55 "ccc" 450 45 how can I do it in vb .net code? Code:
ptTable.PivotFields("Field0").orientation = Excel.XlPivotFieldOrientation.xlRow
ptTable.PivotFields("Field1").orientation = Excel.XlPivotFieldOrientation.xlDataField
ptTable.PivotFields("Field2").orientation = Excel.XlPivotFieldOrientation.xlDataField
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| query tuning | dhaya | Database | 11 | 08-25-2003 06:24 PM |
| Adding Data to a Database Field in VB6 | Brian Higgins | VB Classic | 1 | 11-27-2001 12:19 AM |
| Pivot Table HELP!!! | olaf | ASP.NET | 0 | 12-05-2000 02:52 PM |
| Creating a pivot table | Burak | VB Classic | 0 | 06-27-2000 02:31 PM |
| VB Pivot table | Dwg | VB Classic | 0 | 05-25-2000 07:51 AM |