返回一个 SpellingOptions 对象,该对象代表应用程序的拼写选项。
expression.SpellingOptions
expression 必需。该表达式返回“应用于”列表中的对象之一。
本示例中,Microsoft Excel 检查忽略混合数字的拼写选项的设置,并通知给用户。
Sub MixedDigitCheck()
' Determine the setting on spell checking for mixed digits.
If Application.SpellingOptions.IgnoreMixedDigits = True Then
MsgBox "The spelling options are set to ignore mixed digits."
Else
MsgBox "The spelling options are set to check for mixed digits."
End If
End Sub