ComboBox.ListIndex Property (Outlook Forms Script)

Gibt einen Variant-Wert zurück, der das aktuell markierte Element in einem ComboBox -Objekt darstellt, oder legt den betreffenden Wert fest. Lese-/Schreibzugriff.

Syntax

Ausdruck. Listindex

expression Eine Variable, die ein ComboBox-Objekt darstellt.

HinwBemerkungeneise

The ListIndex property contains an index of the selected row in a list. Values of ListIndex range from -1 to one less than the total number of rows in a list (that is, ListCount - 1). When no rows are selected, ListIndex returns -1. When the user selects a row in a ListBox or ComboBox, the system sets the ListIndex value. The ListIndex value of the first row in a list is 0, the value of the second row is 1, and so on.

The ListIndex value is also available by setting the BoundColumn property to 0 for a combo box. If BoundColumn is 0, the underlying data source to which the combo box is bound contains the same list index value as ListIndex.

Support und Feedback

Haben Sie Fragen oder Feedback zu Office VBA oder zu dieser Dokumentation? Unter Office VBA-Support und Feedback finden Sie Hilfestellung zu den Möglichkeiten, wie Sie Support erhalten und Feedback abgeben können.