_Application.CreateItemFromTemplate(String, Object) _Application.CreateItemFromTemplate(String, Object) Method


Creates a new Microsoft Outlook item from an Outlook template (.oft) and returns the new item.

public object CreateItemFromTemplate (string TemplatePath, object InFolder);
Public Function CreateItemFromTemplate (TemplatePath As String, Optional InFolder As Object) As Object


String String

The path and file name of the Outlook template for the new item.

Object Object

The folder in which the item is to be created. If this argument is omitted, the default folder for the item type will be used.


An Object value that represents the new Microsoft Outlook item.


New items will always open in compose mode, as opposed to read mode, regardless of the mode in which the items were saved to disk.

Applies to