XL97: Problems Setting Column Headings in ListBox Control (165494)
The information in this article applies to:
- Microsoft Excel 97 for Windows
This article was previously published under Q165494 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.
CAUSE
You may experience this behavior if all of the following are true:
- The range of cells you are using has labels in the first row.
-and-
- You set the RowSource property of the ListBox control to the entire
range of your data, including the row with the labels.
-and-
- 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 to the range of cells that is beneath the
labels. Please see the "More Information" section for a sample UserForm
that demonstrates this behavior.
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 ListBox control, click the Index tab in
Microsoft Visual Basic for Applications Help, type the following text
and then double-click the selected text to go to the "Things you can do
with a multicolumn ListBox or ComboBox" topic.
Modification Type: | Major | Last Reviewed: | 10/22/2000 |
---|
Keywords: | kbbug kbProgramming KB165494 |
---|
|