如果该值为 False,则命令 Microsoft Excel 检查大写单词。如果该值为 True,则命令 Excel 在使用拼写检查时忽略大写单词。Boolean 类型,可读写。
expression.IgnoreCaps
expression 必需。该表达式返回“应用于”列表中的对象之一。
在本示例中,Microsoft Excel 将确定检查大写单词的拼写时使用何种设置,并通知给用户。
Sub SpellingOptionsCheck()
If Application.SpellingOptions.IgnoreCaps = True Then
MsgBox "Spelling options for checking uppercase words is disabled."
Else
MsgBox "Spelling options for checking uppercase words is enabled."
End If
End Sub