XL5: Can't Use Horizontal Array for List Box/Drop-Down InputLast reviewed: September 2, 1997Article ID: Q115793 |
The information in this article applies to:
SUMMARYIn Microsoft Excel version 5.0, you cannot use a horizontal array for the input range for list boxes or drop-down boxes. When you use a horizontal range for the input range of a list box or a drop-down box, you will not receive an error message; however, only the first item in the array will be displayed in the list box or drop-down box. Note also that you cannot use the ListFillRange property to fill a list box or drop-down box with a row of data. For information about how to populate a list box or drop-down box with a row of data, see the sample macros at the end of this article.
WORKAROUNDSMicrosoft provides examples of Visual Basic procedures for illustration only, without warranty either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. This Visual Basic procedure is provided 'as is' and Microsoft does not guarantee that it can be used in all situations. Microsoft does not support modifications of this procedure to suit customer requirements for a particular purpose.
To use a horizontal range of values in a list box on a worksheet
To use a horizontal range of values in a drop-down list box on a worksheet
Sub AddArrayToDropDownOnWorksheet() Sheets("Sheet1").DropDowns(1).List = Sheets("Sheet1").Range("A1:F1") End SubTo use a horizontal range of values in a drop-down list box on a dialog sheet
Sub AddArrayToDropDownOnDialogSheet() Sheets("Dialog1").DropDowns(1).List = Sheets("Sheet1").Range("A1:F1") End Sub |
Additional query words: 5.00 5.00c
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |