XL2000: Problems Setting Column Headings in ListBox Control (211899)
The information in this article applies to:
This article was previously published under Q211899 SYMPTOMS
If 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).
CAUSE
This behavior can occur if all of the following conditions are true:
- The range of cells that you are using has labels in the first row.
- You set the RowSource property of the ListBox control to the entire range of your data, including the row with the labels.
- You set the ColumnHeads property of the ListBox control to True.
RESOLUTION
To have the labels appear as column labels in a ListBox control, set the RowSource property of the ListBox control to the range of cells that is beneath the labels. See the "More Information" section for a sample UserForm that demonstrates this behavior.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. REFERENCESFor more information about the ListBox control, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type things you can do with a multicolumn listbox or combobox in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbbug kbpending kbProgramming KB211899 |
---|
|