ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Multi-Column Listbox properties (https://www.excelbanter.com/excel-programming/318368-multi-column-listbox-properties.html)

Otto Moehrbach[_6_]

Multi-Column Listbox properties
 
Excel 2002, WinXP
I have a UF with a ListBox with 5 columns of data.
I set the ColumnCount property to 5.
I want the user to be able to select any one of the 200 or so items in the 5
columns, but it appears that all he can select is one row. The BoundColumn
property then comes into play to force the selected value to be the one in
the column specified by the BoundColumn property value.

How can I setup the ListBox properties so that any one item in any one
column can be selected at will?

A second question: The 5 columns of data as they appear in the displayed UF
ListBox are too far apart, resulting in a very wide ListBox. I tried
changing the value of the ColumnWidths property but this had little effect.
How can I narrow the columns in the ListBox?
Thanks for your help. Otto



Otto Moehrbach[_6_]

Multi-Column Listbox properties
 
Another problem is that the ListBox doesn't display the first column. I
have the name of my 5 column range in the RowSource property but only the
last 4 columns display.
If I change the ColumnCount property to 4, then only 3 columns display, and
those are the 2,3 and 4th columns. The first column is always missing.
What am I missing? Thanks for your help. Otto
"Otto Moehrbach" wrote in message
...
Excel 2002, WinXP
I have a UF with a ListBox with 5 columns of data.
I set the ColumnCount property to 5.
I want the user to be able to select any one of the 200 or so items in the
5 columns, but it appears that all he can select is one row. The
BoundColumn property then comes into play to force the selected value to
be the one in the column specified by the BoundColumn property value.

How can I setup the ListBox properties so that any one item in any one
column can be selected at will?

A second question: The 5 columns of data as they appear in the displayed
UF ListBox are too far apart, resulting in a very wide ListBox. I tried
changing the value of the ColumnWidths property but this had little
effect. How can I narrow the columns in the ListBox?
Thanks for your help. Otto





All times are GMT +1. The time now is 06:04 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com