Word) (Document.CheckSpelling 方法

針對指定的文件或範圍,開始進行拼字檢查。 .

語法

運算式CheckSpelling (CustomDictionaryIgnoreUppercaseAlwaysSuggestCustomDictionary2CustomDictionary3CustomDictionary4CustomDictionary5CustomDictionary6CustomDictionary7CustomDictionary8CustomDictionary9CustomDictionary10)

需要 expression。 代表 Document 物件的變數。

參數

名稱 必要/選用 資料類型 描述
IgnoreUppercase 選用 Variant True 如果會忽略大寫字。 如果省略此引數,則會使用 IgnoreUppercase 屬性的目前值。
AlwaysSuggest 選用 Variant True 是表示 Microsoft word 一律建議替代拼法。 如果省略此引數,則會使用 SuggestSpellingCorrections 屬性的目前值。

註解

如果文件或範圍含有錯誤,這個方法就會顯示 [拼字及文法檢查] 對話方塊 ([工具] 功能表),並清除 [檢查文法] 核取方塊。 若為文件,這個方法就會檢查所有可用的本文 (例如,頁首、頁尾及文字方塊)。

範例

下列範例會檢查使用中文件的拼字。

ActiveDocument.CheckSpelling

另請參閱

Document 物件

支援和意見反應

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