CreateItemFromTemplate Method

CreateItemFromTemplate Method

See Also         Example         Applies To

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

Syntax

objApplication.CreateItemFromTemplate(TemplatePath, [InFolder])

objApplication     Required. An expression that returns an Application object.

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

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