Upravit

Sdílet prostřednictvím


Application.EmailTemplate property (Word)

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

Syntax

expression. EmailTemplate

expression An expression that returns an Application object.

Remarks

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

Example

This example instructs Word to use the template named "Email" for all new email 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

See also

Application Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.