Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default Complex Pivot table formatting

Hi,

I have six pivot tables all chained together on a sheet. Since Excel doesn't
do a good job remembering all the custom formatting that you do to it before
a refresh, I need macros to do the formatting afterwards. Is there is any way
to do this by referring to the different parts and then applying your desired
formatting via code? I'm having a heck of at time decreasing line thickness
between groupings, etc. Since these grouping will change each time the pivot
tables are generated due to new data being populated, I can't create a
standard name reference that will consistently refer to the area that I'd
like to format.

To complicate matters, each group of six pivot table contained on a
worksheet will have a sheet name equal to the page filter chosen on a summary
sheet. Naming references becomes difficult because I won't know the sheet
name where the six pivot tables are located until the user enters in a
pagefilter on the summary sheet and VBA subsequently generates the worksheet
with the six pivot tables (all with the same page filter).

Is this a question of WYSIWYG? What a drag if this is the case. How the
tables are generated is very crude and clients won't find them useful due to
the many busy dark lines between data groupings...

Can anyone provide some insight into matter?

Thanks a million...
--
Kent Lysell
Financial Consultant
Ottawa, Ontario
W: 613.948-9557
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Complex Pivot table formatting

I'm usually using "Excel predefined formats" combine with my own formats. I
do it this way:

Sub FormatPivotTable(sh As Worksheet)

sh.PivotTables(1).Format xlReport6
sh.Columns("A:A").WrapText = True
sh.Columns("A:A").ColumnWidth = 9
sh.Columns("B:D").ColumnWidth = 5
sh.Columns("E:E").ColumnWidth = 60
sh.Columns("F:G").ColumnWidth = 9
sh.Columns("H:H").ColumnWidth = 13
sh.Cells.EntireRow.AutoFit
sh.Rows("1:4").RowHeight = 0

End Sub

Vlado


"klysell" wrote:

Hi,

I have six pivot tables all chained together on a sheet. Since Excel doesn't
do a good job remembering all the custom formatting that you do to it before
a refresh, I need macros to do the formatting afterwards. Is there is any way
to do this by referring to the different parts and then applying your desired
formatting via code? I'm having a heck of at time decreasing line thickness
between groupings, etc. Since these grouping will change each time the pivot
tables are generated due to new data being populated, I can't create a
standard name reference that will consistently refer to the area that I'd
like to format.

To complicate matters, each group of six pivot table contained on a
worksheet will have a sheet name equal to the page filter chosen on a summary
sheet. Naming references becomes difficult because I won't know the sheet
name where the six pivot tables are located until the user enters in a
pagefilter on the summary sheet and VBA subsequently generates the worksheet
with the six pivot tables (all with the same page filter).

Is this a question of WYSIWYG? What a drag if this is the case. How the
tables are generated is very crude and clients won't find them useful due to
the many busy dark lines between data groupings...

Can anyone provide some insight into matter?

Thanks a million...
--
Kent Lysell
Financial Consultant
Ottawa, Ontario
W: 613.948-9557

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default Complex Pivot table formatting

Thanks Vlado.

I appreciate your input. Every bit of help has helped me with my general
direction.
--
Kent Lysell
Financial Consultant
Ottawa, Ontario
W: 613.948-9557


"Vlado Sveda" wrote:

I'm usually using "Excel predefined formats" combine with my own formats. I
do it this way:

Sub FormatPivotTable(sh As Worksheet)

sh.PivotTables(1).Format xlReport6
sh.Columns("A:A").WrapText = True
sh.Columns("A:A").ColumnWidth = 9
sh.Columns("B:D").ColumnWidth = 5
sh.Columns("E:E").ColumnWidth = 60
sh.Columns("F:G").ColumnWidth = 9
sh.Columns("H:H").ColumnWidth = 13
sh.Cells.EntireRow.AutoFit
sh.Rows("1:4").RowHeight = 0

End Sub

Vlado


"klysell" wrote:

Hi,

I have six pivot tables all chained together on a sheet. Since Excel doesn't
do a good job remembering all the custom formatting that you do to it before
a refresh, I need macros to do the formatting afterwards. Is there is any way
to do this by referring to the different parts and then applying your desired
formatting via code? I'm having a heck of at time decreasing line thickness
between groupings, etc. Since these grouping will change each time the pivot
tables are generated due to new data being populated, I can't create a
standard name reference that will consistently refer to the area that I'd
like to format.

To complicate matters, each group of six pivot table contained on a
worksheet will have a sheet name equal to the page filter chosen on a summary
sheet. Naming references becomes difficult because I won't know the sheet
name where the six pivot tables are located until the user enters in a
pagefilter on the summary sheet and VBA subsequently generates the worksheet
with the six pivot tables (all with the same page filter).

Is this a question of WYSIWYG? What a drag if this is the case. How the
tables are generated is very crude and clients won't find them useful due to
the many busy dark lines between data groupings...

Can anyone provide some insight into matter?

Thanks a million...
--
Kent Lysell
Financial Consultant
Ottawa, Ontario
W: 613.948-9557

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Complex Pivot Table Function DyingIsis Excel Discussion (Misc queries) 1 May 23rd 08 12:50 AM
Mega Complex Pivot Table design question The Frog Excel Programming 0 May 10th 07 02:45 PM
Complex Pivot Table Sukh Excel Discussion (Misc queries) 3 March 2nd 07 01:50 PM
Jon Peltier - Pivot Table Result for yesterday's "Complex Chart" Question Barb Reinhardt Charts and Charting in Excel 3 December 8th 04 01:48 AM
Pivot Table: Complex printing issue???? Joe Mathis Excel Programming 1 November 21st 03 05:03 PM


All times are GMT +1. The time now is 11:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"