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
- 3555 reads

Recent comments
7 years 25 weeks ago
8 years 10 weeks ago
8 years 22 weeks ago
8 years 25 weeks ago
8 years 26 weeks ago
8 years 32 weeks ago
8 years 40 weeks ago
8 years 40 weeks ago
8 years 40 weeks ago
8 years 40 weeks ago