![]() |
Pivot table custom formatting of group levels
Is it possible to assign a different formatting for each RowField in a Pivot
table without using the built-in autoformats in Excel? f.i. One wants a report with the revenues per city, per state. Now it is desired to make the row with names of the state and its revenues pink and the row with city names and revenues blue. I have investigated the interfaces in the Excel type library and searched de MSDN documentation on it, but all I can achieve is to format the pivot table regions through commands such as: With ActiveSheet.PivotTables(1) .HasAutoFormat = False .TableRange1.Style = "Test" .DataBodyRange.Style = "Test2" .RowRange.Style = "RowStyle" .ColumnRange.Style = "ColumnStyle" End With Although these properties seem to be promising, it just formats all the rowfields and not the data, neither is it possible to apply different formatting to group levels. You end up with a pivot table that is pink on the left and white on the right. This does not help to clarify the groupings in the report. So I start to wonder if it is possible to reproduce a report with a style and formatting similar to the built-in autoformats in Excel? |
All times are GMT +1. The time now is 12:17 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com