Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All
Is it possible to 'autofit' column widths in a ListBox built from the Control Toolbox? If so, can you point me in the right direction. Thanks Trevor Williams |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This from the VBA help file:
To separate column entries, use semicolons (;) as list separators. In Windows, use the list separator specified in the Regional Settings section of the Windows Control Panel to change this value. Any or all of the ColumnWidths property settings can be blank. You create a blank setting by typing a list separator without a preceding value. If you specify a -1 in the property page, the displayed value in the property page is a blank. To calculate column widths when ColumnWidths is blank or -1, the width of the control is divided equally among all columns of the list. If the sum of the specified column widths exceeds the width of the control, the list is left-aligned within the control and one or more of the rightmost columns are not displayed. Users can scroll the list using the horizontal scroll bar to display the rightmost columns. The minimum calculated column width is 72 points (1 inch). To produce columns narrower than this, you must specify the width explicitly. "Trevor Williams" wrote in message ... Hi All Is it possible to 'autofit' column widths in a ListBox built from the Control Toolbox? If so, can you point me in the right direction. Thanks Trevor Williams |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel XML Auto Column Width | Excel Programming | |||
Auto Column width for new sheets in workbook? | Excel Programming | |||
Listbox Column Count and Width Dont work. Seems Easy | Excel Programming | |||
auto fit column width and row height | Excel Discussion (Misc queries) | |||
Auto Adjust the Width of a Column | Excel Programming |