Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to permantely fix the width of columns in a table so that everytime I refresh the table, the columns do not resize themselves automatically..
Any suggestions |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Not sure how to permanently set widths, but I have been known to write some
code I could call when necessary to restore specific column widths. Some examples... Sub SetColumnWidths__6() Call SetColumnWidths(6) End Sub Sub SetColumnWidths_12() Call SetColumnWidths(12) End Sub Sub SetColumnWidths(w As Double) Application.ScreenUpdating = False Columns("A:Z").ColumnWidth = w Application.ScreenUpdating = True End Sub Sub SetEachColumnWidth() Application.ScreenUpdating = False Columns("A").ColumnWidth = 2 Columns("B").ColumnWidth = 4 Columns("C").ColumnWidth = 6 Columns("D").ColumnWidth = 8 Columns("E").ColumnWidth = 10 Columns("F").ColumnWidth = 12 Columns("G").ColumnWidth = 14 Columns("H:IV").ColumnWidth = 0 Application.ScreenUpdating = True End Sub "Albertob" wrote in message ... I want to permantely fix the width of columns in a table so that everytime I refresh the table, the columns do not resize themselves automatically... Any suggestions |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Column Headings, Fixing In-Place | New Users to Excel | |||
Change Cell Width WITHOUT changing Column width | Excel Discussion (Misc queries) | |||
How to make cell width different than the column width it lies in | Excel Discussion (Misc queries) | |||
fixing column width | Excel Worksheet Functions |