Add Method (Items Collection)

Add Method (Items Collection)

See Also         Example         Applies To

Creates a new Outlook item in the Items collection for the folder, and returns the new item. If not specified, the Type of the item defaults to the type of the folder, or to MailItem if the parent folder is not typed.

Syntax

objItems.Add([Type])

objItems   Required. An expression that returns an Items collection object.

Type   Optional. Variant. The Outlook item type for the new item. Can be one of the following OlItemType constants: olAppointmentItem(1), olContactItem(2), olJournalItem(4), olMailItem(0), olNoteItem(5), olPostItem(6), or olTaskItem(3) or any valid message class. Specify the MessageClass to create custom forms.