Compartilhar via


Global.AutoCorrectEmail Property

Word Developer Reference

Returns an AutoCorrect object that represents automatic corrections made to e-mail messages.

Syntax

expression.AutoCorrectEmail

expression   Required. A variable that represents a Global object.

Example

This example adds AutoCorrect entries for e-mail messages. After this code runs, every instance of "allways," "hte," and "hwen" that's typed in an e-mail message will be replaced with "always," "the," and "when," respectively.

Visual Basic for Applications
  Sub AutoCorrectEMailAddress()
    With Application.AutoCorrectEmail
        .Entries.Add Name:="allways", Value:="always"
        .Entries.Add Name:="hte", Value:="the"
        .Entries.Add Name:="hwen", Value:="when"
    End With
End Sub

See Also