XLA routines: EE_PivotArrangeDataFields
EE_PivotArrangeDataFields allows you to add data fields to your pivot in the format you want.
Sub EE_PivotArrangeDataFields(pt As PivotTable, strField As String, strDisplayName As String, lngSummariseOperation As PvtDataCalc, strNumberFormat As String) '- as above '- takes an array of data fields, a new name for them, the 'sum' 'count' etc.. , and 'the Format 'http://excelexperts.com/xla-routines-eeCreatePivotFromCSV for updates on this sub routine With pt .AddDataField .PivotFields(strField), strDisplayName, lngSummariseOperation .PivotFields(strDisplayName).NumberFormat = strNumberFormat End With End Sub
»
- Nick's blog
- Login or register to post comments
- 2822 reads
Recent comments
5 years 41 weeks ago
6 years 27 weeks ago
6 years 39 weeks ago
6 years 42 weeks ago
6 years 43 weeks ago
6 years 48 weeks ago
7 years 4 weeks ago
7 years 5 weeks ago
7 years 5 weeks ago
7 years 5 weeks ago