Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Fri, 27 May 2005 11:47:44 -0400, "Bernie Deitrick" <deitbe @ consumer dot org wrote:
You can get close (but never get exact due to limitations on the accuracy of the character size) using something like: Sub Macro1() Dim NewWidth As Double NewWidth = 17 With Range("A1").EntireColumn MsgBox "Column A was this wide: " & .Width .ColumnWidth = NewWidth * .ColumnWidth / .Width .ColumnWidth = NewWidth * .ColumnWidth / .Width MsgBox "Column A is this now wide: " & .Width End With End Sub Thanks Bernie, that's close enough for me. Nirmal |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
setting column width | Excel Discussion (Misc queries) | |||
Setting column width in a table | Excel Discussion (Misc queries) | |||
Setting column width for blank columns | Excel Discussion (Misc queries) | |||
Setting Column Width on Imported Data | Excel Discussion (Misc queries) | |||
Setting column width | Excel Programming |