共用方式為


OlkComboBox.AddItem Method (Outlook)

Adds an item to the list, optionally specifying an index for the new item to appear in the list.

Version Information

Version Added: Outlook 2007

Syntax

expression .AddItem(ItemText, Index)

expression A variable that represents an OlkComboBox object.

Parameters

Name

Required/Optional

Data Type

Description

ItemText

Required

String

Value to be added to the list in the combo box.

Index

Optional

Long

A 0-based value that specifies the order of the new item in the list.

Remarks

If the value of Index is equal to or larger than the number of elements in the list, the new item will be added to the end of the list.

See Also

Concepts

OlkComboBox Object Members

OlkComboBox Object