Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 623
Default Pivot table column widths

I have a pivot table with nice compact column widths, formatted with Table4.

When I choose a specific page field, the all column widths are adjusted to the
size of the field chosen.

If I turn off Autoformat table in Table Options, that stops the columns from
being resized, but it also deletes the table formatting (bold, colors, etc.)

Is there a way to stop the column widths from being resized, but keep the format
of the table?

The table is created in a macro, so if the solution involves VBA, that would be
fine.

--
Regards,
Fred



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,979
Default Pivot table column widths

You could record a macro as you set the column widths, then run that
when the pivot table is updated or the page field is changed. To run the
code automatically, you could add it to the worksheet module for the
pivot table sheet (right-click on the sheet tab, choose View Code).

For example, if you record a macro and name it ResetColumns:

'========
Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
ResetColumns
End Sub
'========

Fred Smith wrote:
I have a pivot table with nice compact column widths, formatted with Table4.

When I choose a specific page field, the all column widths are adjusted to the
size of the field chosen.

If I turn off Autoformat table in Table Options, that stops the columns from
being resized, but it also deletes the table formatting (bold, colors, etc.)

Is there a way to stop the column widths from being resized, but keep the format
of the table?

The table is created in a macro, so if the solution involves VBA, that would be
fine.



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

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
locking column widths within a pivot table Blue Bunny Excel Worksheet Functions 0 May 18th 06 08:43 PM
Add a column outside pivot table and... mrright Excel Discussion (Misc queries) 1 October 21st 05 03:11 AM
How do I keep with column widths of a pivot table when I refresh Kaz Excel Worksheet Functions 1 September 7th 05 11:23 PM
Keeping Column Widths the same in a pivot table when pages increase [email protected] Excel Discussion (Misc queries) 1 June 3rd 05 02:38 PM
How do I fix column widths in Excel Pivot Tables? skeezix Excel Discussion (Misc queries) 1 December 11th 04 01:43 AM


All times are GMT +1. The time now is 05:14 PM.

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"