CreateItem Method

CreateItem Method

See Also         Example         Applies To

Creates a new Outlook item and returns it. The CreateItem method can only create default Outlook items. To create new items using a custom form, use the Add method on the Items collection.

Syntax

objApplication.CreateItem(ItemType)

objApplication    Required. An expression that returns an Application object.

ItemType   Required Long. 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).