Word) (Application.AutoCorrectEmail 屬性

會傳回 AutoCorrect 物件,代表自動校正電子郵件訊息。

語法

expressionAutoCorrectEmail

表達 會傳回 Application 物件的運算式。

範例

此範例會新增電子郵件訊息的自動校正專案。 執行此程式碼之後,電子郵件訊息中輸入的每個 「allways」、「the」 和 「hwen」 實例都會分別取代為 「always」、「the」 和 「when」。

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

另請參閱

Application 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應