XL97: TextColumn Property Displays Only the First Column (165644)
The information in this article applies to:
- Microsoft Excel 97 for Windows
This article was previously published under Q165644 SYMPTOMS
When you set the TextColumn property for a ComboBox or ListBox control on a
UserForm in a Visual Basic for Applications macro, Microsoft Excel may
display the first column in the range of data instead of the column that
you specify.
WORKAROUND
To work around this problem, set the ColumnWidths property to 0 (zero) so
that the column you want to display is the first column in the range of
data that has a column width greater than 0. For example, if you want to
display the second column in the list but return a value from the first
column of the list, use the properties that are listed in the following
table.
Property Value
---------------------
BoundColumn 1
ColumnCount 2
ColumnsWidths 0
TextColumn 2
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article.
REFERENCES
For more information about the TextColumn property, click the Index tab in
Visual Basic for Applications Help, type the following text
and then double-click the selected text to go to the "TextColumn Property"
topic.
Modification Type: | Major | Last Reviewed: | 10/22/2000 |
---|
Keywords: | kbbug KB165644 |
---|
|