Rediger

Del via


_Application.CreateItemFromTemplate(String, Object) Method

Definition

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

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