Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Column width fixing

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default Column width fixing

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
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
Column Headings, Fixing In-Place Col Gregg New Users to Excel 10 April 29th 09 04:47 PM
Change Cell Width WITHOUT changing Column width dww701 Excel Discussion (Misc queries) 1 January 12th 09 10:52 PM
How to make cell width different than the column width it lies in John Excel Discussion (Misc queries) 2 September 11th 06 10:41 PM
fixing column width John P Excel Worksheet Functions 1 July 14th 06 05:49 AM


All times are GMT +1. The time now is 05:30 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"