_Application.CreateItemFromTemplate(String, Object) Method

Definition

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

C#
public object CreateItemFromTemplate (string TemplatePath, object InFolder);

Parameters

TemplatePath
String

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

InFolder
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.

Returns

An Object value that represents the new Microsoft Outlook item.

Remarks

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

Product Versions
Outlook primary interop assembly Latest