共用方式為


Excel) (SpellingOptions 物件

代表工作表的各種拼字檢查選項。

註解

使用 Application物件的SpellingOptions屬性可傳回SpellingOptions物件。

傳回 SpellingOptions 物件之後,您可以使用下列屬性來設定或傳回各種拼字檢查選項:

  • ArabicModes
  • DictLang
  • GermanPostReform
  • HebrewModes
  • IgnoreCaps
  • IgnoreFileNames
  • IgnoreMixedDigits
  • KoreanCombineAux
  • KoreanProcessCompound
  • KoreanUseAutoChangeList
  • SuggestMainOnly
  • UserDict

範例

下列範例會使用 IgnoreCaps 屬性停用對全部字母都是大寫之單字的拼字檢查。 在這個範例中,拼字檢查程式會識別 "Testt",但不會識別 "TESTT"。

Sub IgnoreAllCAPS() 
 
 ' Place misspelled versions of the same word in all caps and mixed case. 
 Range("A1").Formula = "Testt" 
 Range("A2").Formula = "TESTT" 
 
 With Application.SpellingOptions 
 .SuggestMainOnly = True 
 .IgnoreCaps = True 
 End With 
 
 ' Run a spell check. 
 Cells.CheckSpelling 
 
End Sub

屬性

另請參閱

支援和意見反應

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