Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The widths shoulb be a string data type:
UserForm1.Listbox1.ColumnWidths = "20; 40; 25" Just add quote marks. "JLGWhiz" wrote in message ... To manually adjust the columns of a listbox in the properties window, if you have three columns: ColumnWidth | 20, 40, 25 Would set column 1 to 20, col 2 to 40 and col 3 to 25 "Roger on Excel" wrote in message ... [Excel 2003] I use listboxes to display tables of data. Is there a way to adjust individual column widths such that one can make the columns fit - some of my columns need to be narrow and some wide. Thus far I have only been able to make the first column width adjusted (ColumnWidth Property) to what i want, but the others seem to be set to a predefined default width. Surely one can use code to adjust all the widths?? Roger |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
auto adjust column widths and row height | Excel Discussion (Misc queries) | |||
AUTOMATICALLY ADJUST COLUMN WIDTHS TO CONTENT | Excel Worksheet Functions | |||
Automatically adjust column widths | Excel Discussion (Misc queries) | |||
Column widths to adjust automatically? | Excel Discussion (Misc queries) | |||
How do I adjust column widths only on selected cells? | Excel Discussion (Misc queries) |