EmailTemplate Property

Microsoft Word Visual Basic

EmailTemplate Property

       

Returns or sets a String that represents the document template to use when sending e-mail messages. Read/write.

expression.EmailTemplate

expression   Required. An expression that returns an Application object.

Remarks

Use the EmailTemplate property when Microsoft Word is specified as your e-mail editor, which you must do inside Microsoft Outlook.

Example

This example instructs Word to use the template named "Email" for all new e-mail messages. This example assumes that you have a template named "Email" and that it is stored in the default template location.

Sub MessageTemplate()
    Application.EmailTemplate = "Email"
End Sub