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. CAUSE
You may experience this behavior if all of the following are true:
-and- -and- 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. MORE INFORMATION
The 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, 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
Keywords : kbprg kbdta xlvbainfo |
Last Reviewed: November 4, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |