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