_Application.CreateItem Method

Creates and returns a new Microsoft Outlook item.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)


<DispIdAttribute()> _
Function CreateItem ( _
    ItemType As OlItemType _
) As Object
Dim instance As _Application
Dim ItemType As OlItemType
Dim returnValue As Object

returnValue = instance.CreateItem(ItemType)
Object CreateItem(
    OlItemType ItemType


Return Value

Type: System.Object
An Object value that represents the new Outlook item.


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.

See Also


_Application Interface

_Application Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Import Appointment XML Data into Outlook Appointment Objects