Class EmailSignature (Word VBA)

Contains information about the email signatures used by Microsoft Word when you create and edit email messages and replies. To use a EmailSignature class variable it first needs to be instantiated, for example


Dim ese as EmailSignature
Set ese = Application.EmailOptions.EmailSignature

EmailSignatureEntries

Returns an EmailSignatureEntries object that represents the email signature entries in Microsoft Word.

An email signature is standard text that ends an email message, such as your name and telephone number. Use the EmailSignatureEntries property to create and manage a collection of email signatures that Word will use when creating email messages.


Sub NewSignature() 
 Application.EmailOptions.EmailSignature _ 
 .EmailSignatureEntries.Add _ 
 Name:=ActiveDocument.BuiltInDocumentProperties("Author"), _ 
 Range:=Selection.Range 
End Sub

NewMessageSignature

Returns or sets the signature that Microsoft Word appends to new email messages.

When setting this property, you must use the name of an email signature that you have created in the Email Options dialog box, available from the General tab of the Options dialog box (Tools menu).


With Application.EmailOptions.EmailSignature 
 .NewMessageSignature = "Signature1" 
End With

ReplyMessageSignature

Returns or sets the signature that Microsoft Word appends to email message replies.

When setting this property, you must use the name of an email signature that you have created in the Email Options dialog box, available from the General tab of the Options dialog box (Tools menu).


With Application.EmailOptions.EmailSignature 
 .ReplyMessageSignature = "Reply2" 
End With