Excel) (Application.SpellingOptions 属性

返回表示应用程序拼写选项的 SpellingOptions 对象。

语法

表达式。SpellingOptions

expression:表示 Application 对象的变量。

示例

本示例中,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

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。