XL97: Problems Setting Column Headings in ListBox ControlLast reviewed: February 12, 1998Article ID: Q165494 |
The information in this article applies to:
SYMPTOMSIf you set the RowSource property of a ListBox control to a range of cells on a worksheet, the column headings in the list box may not be the values in the first row of your data. For example, the column headings in the ListBox control may be "Column A" and "Column B" (without the quotation marks).
CAUSEYou may experience this behavior if all of the following are true:
RESOLUTIONTo have the labels appear as column labels in a ListBox control, set the RowSource property of the ListBox to the range of cells that is beneath the labels. Please see the "More Information" section for a sample UserForm that demonstrates this behavior.
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 following steps demonstrate how to set the properties of a ListBox control so that the first row of data is used for the column labels in the ListBox.
NOTE: If you set the RowSource property to "Sheet1!A1:B5" (without the quotation marks), and then run the UserForm, the data in A1 and B1 will be a selectable row in the ListBox and the column headings will be "Column A" and "Column B", respectively.
REFERENCESFor more information about the ListBox control, click the Index tab in Microsoft Visual Basic for Applications Help, type the following text
listbox controland then double-click the selected text to go to the "Things you can do with a multicolumn ListBox or ComboBox" topic.
|
Additional query words: XL97 list box row source
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |