peachmelba
Programmer
Has anyone managed to format a pivot table from code.
I have managed to format the labels and the data but can not find a way of formating the totals.
Currently I use for the labels:-
pvtField.LabelRange.Font.Bold = True
pvtField.LabelRange.Interior.Color = intcolGroupBy
pvtField.LabelRange.WrapText = True
pvtField.DataRange.Font.Bold = True
pvtField.DataRange.Interior.Color = intcolGroupBy
and
For Each pvtField In pvtTable.DataFields
pvtField.DataRange.Interior.Color = intcolAuto
pvtField.DataRange.Borders.Color = 0
Next pvtField
for the data fields. I need to do the same for the Sub Totals. Anyone have any ideas????
Regs
Peachmelba
I have managed to format the labels and the data but can not find a way of formating the totals.
Currently I use for the labels:-
pvtField.LabelRange.Font.Bold = True
pvtField.LabelRange.Interior.Color = intcolGroupBy
pvtField.LabelRange.WrapText = True
pvtField.DataRange.Font.Bold = True
pvtField.DataRange.Interior.Color = intcolGroupBy
and
For Each pvtField In pvtTable.DataFields
pvtField.DataRange.Interior.Color = intcolAuto
pvtField.DataRange.Borders.Color = 0
Next pvtField
for the data fields. I need to do the same for the Sub Totals. Anyone have any ideas????
Regs
Peachmelba