Excel) (SpellingOptions.SuggestMainOnly 屬性

設為 True 時,指示 Microsoft Excel 在使用拼字檢查器時,只從主要字典建議單字。 False 會移除使用拼字檢查器時,僅從主要字典中建議單字的限制。 可讀寫的 Boolean。

語法

運算式。SuggestMainOnly

運算式 代表 SpellingOptions 物件的變數。

範例

在此範例中,Microsoft Excel 會檢查拼字檢查選項,以僅從主字典中建議單字,並將狀態回報給使用者。

Sub UsingMainDictionary() 
 
 ' Check the setting of suggesting words only from the main dictionary. 
 If Application.SpellingOptions.SuggestMainOnly = True Then 
 MsgBox "Spell checking option suggestions will only come from the main dictionary." 
 Else 
 MsgBox "Spell checking option suggestions are not limited to the main dictionary." 
 End If 
 
End Sub

支援和意見反應

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