Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Pivot Field Function Code
hey guys
Below is a the code I use to calculate (summarize) a particular pivot field in my pivot table: With ActiveSheet.PivotTables("PivotTable1").PivotFields ("% Overdue") .Orientation = xlDataField .Caption = "Percent Overdue" .Position = 1 .Function = xlAverage End With As you can see the .Function tells the field how to calculate. Is it possible to put a custom formula in there such as: ..Function = (Total28- 'On Time28')/ Total28 When I do this VBA highlights it in red. Is there a way to do this? Thank you Todd Huttenstine |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Run a VB code when you click on the data field of a Pivot Table | Excel Discussion (Misc queries) | |||
Pivot Tables - standard Data Field function | Excel Discussion (Misc queries) | |||
Excel 2007 Pivot Table - Group Field function is not always availa | Excel Worksheet Functions | |||
How to make a field created a part of the Pivot Table Field List? | Excel Discussion (Misc queries) | |||
Pivot table field swapping in code | Excel Programming |