XL97: TextColumn Property Displays Only the First ColumnLast reviewed: February 12, 1998Article ID: Q165644 |
The information in this article applies to:
SYMPTOMSWhen 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.
WORKAROUNDTo 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 STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThe TextColumn property identifies the column in a ComboBox or ListBox that is displayed. Values for the TextColumn property range from –1 to the number of columns in the list. For example, the first column is 1, the second column is 2, and so on. Setting the TextColumn property to 0 displays the Listindex values. Setting the TextColumn property to –1 displays the first column that has a ColumnWidth greater than 0. For more information, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q165570 TITLE : XL97: How to Use the TextColumn Property REFERENCESFor more information about the TextColumn property, click the Index tab in Visual Basic for Applications Help, type the following text
textcolumnand then double-click the selected text to go to the "TextColumn Property" topic.
|
Additional query words: XL97
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |