ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Pivot Table Column Widths (https://www.excelbanter.com/excel-worksheet-functions/166801-pivot-table-column-widths.html)

Iriemon

Pivot Table Column Widths
 
I have a worksheet containing several pivot tables. Is there any way to
"lock" the column widths so that when I refresh the tables the column widths
remain as I have them set?

Thanks

J

Jim Thomlinson

Pivot Table Column Widths
 
In a blank row above the pivot table add in some text (aaaaa or such)
designed to create the correct column width. It's kinda cheesy but it works...
--
HTH...

Jim Thomlinson


"Iriemon" wrote:

I have a worksheet containing several pivot tables. Is there any way to
"lock" the column widths so that when I refresh the tables the column widths
remain as I have them set?

Thanks

J


Iriemon

Pivot Table Column Widths
 
Actually, I have the opposite problem. Due to the column headers on my data
sheet, the columns on my pivot table are too wide.

Iriemon

"Jim Thomlinson" wrote:

In a blank row above the pivot table add in some text (aaaaa or such)
designed to create the correct column width. It's kinda cheesy but it works...
--
HTH...

Jim Thomlinson


"Iriemon" wrote:

I have a worksheet containing several pivot tables. Is there any way to
"lock" the column widths so that when I refresh the tables the column widths
remain as I have them set?

Thanks

J


Agnieszka

Pivot Table Column Widths
 
Hi,
I had the same problem, and the only solution, which I managed was to save a
simple macro with a key shortcut (i.e. CTRL+w), which set a fix column
witdths.


Sub Macro2()
'
' Macro2 Macro

' Range("A1").Select
Range(Selection, Selection.End(xlDown)).Select
Range("C5").Select
ActiveSheet.PivotTables("PivotTable1").PivotSelect "", xlDataAndLabel,
True
Selection.ColumnWidth = 4.5
Columns("A:A").EntireColumn.AutoFit
Columns("B:B").EntireColumn.AutoFit
End Sub


BR
Agnieszka


€˛Iriemon€¯ pisze:

Actually, I have the opposite problem. Due to the column headers on my data
sheet, the columns on my pivot table are too wide.

Iriemon

"Jim Thomlinson" wrote:

In a blank row above the pivot table add in some text (aaaaa or such)
designed to create the correct column width. It's kinda cheesy but it works...
--
HTH...

Jim Thomlinson


"Iriemon" wrote:

I have a worksheet containing several pivot tables. Is there any way to
"lock" the column widths so that when I refresh the tables the column widths
remain as I have them set?

Thanks

J



All times are GMT +1. The time now is 07:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com