The information in this article applies to:
SYMPTOMS
In Microsoft Excel version 5.0, when you use the MultiSelect property for
ListBox objects in a Visual Basic, Applications Edition, macro, you may
experience either of the following problems:
CAUSEThe Microsoft Excel version 5.0 constants xlNone, xlSimple, and xlExtended are mapped to the wrong values. WORKAROUND
For the MultiSelect property, use the values 1, 2, and 3 in place of the
constants xlNone, xlSimple, and xlExtended (respectively).
STATUSMicrosoft has confirmed this to be a problem in Microsoft Excel version 5.0 for Windows. This problem was corrected in Microsoft Excel for Windows, version 5.0c. MORE INFORMATION
For more information about the expected behavior of these constants, choose
the search button in Visual Basic Help, and type:
<object>.MultiSelect = xlNoneThis command will produce the following error message:
<object>.MultiSelect = xlSimpleThis command will cause the list box to behave as if it had the Single select (xlNone) property. <object>.MultiSelect = xlExtendedThis command will cause the list box to behave as if it had the Simple multi-select (xlSimple) property . -also- The help topic for the MultiSelect property in VBA_XL.HLP provides the example
and implies that this command will give the list box the Extended
multi-select (xlExtended) property. However, the actual behavior for this
property is as follows:
Additional query words:
Keywords : |
Last Reviewed: July 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |