EmailSignatureEntries Collection

Microsoft Word Visual Basic

EmailSignatureEntries Collection

EmailSignature EmailSignatureEntries
EmailSignatureEntry

A collection of EmailSignatureEntry objects that represents all the e-mail signature entries available to Word.

Using the EmailSignatureEntries collection

Use the EmailSignatureEntries property to return the EmailSignatureEntries collection. Use the Add method of the EmailSignatureEntries object to add an e-mail signature to Word. The following example creates a new e-mail signature entry based on the author's name and a selection in the active document, and then it sets the new signature entry as the default e-mail signature to use for new messages.

Sub NewEmailSignature()
    With Application.EmailOptions.EmailSignature
        .EmailSignatureEntries.Add "Jeff Smith", Selection.Range
        .NewMessageSignature = "Jeff Smith"
    End With
End Sub