返回或设置阿拉伯语拼写检查的模式。XlArabicModes 类型,可读写。
XlArabicModes 可为以下 XlArabicModes 常量之一。 |
xlArabicNone 拼写检查忽略以下拼写规则:阿拉伯语单词以“yaa”结尾或以“alef hamza”开头。 |
xlArabicBothStrict 拼写检查使用以下拼写规则:阿拉伯语单词以“yaa”结尾或以“alef hamza”开头。 |
xlArabicStrictAlefHamza 拼写检查使用以下拼写规则:阿拉伯语单词以“alef hamza”开头。 |
xlArabicStrictFinalYaa 拼写检查使用以下拼写规则:阿拉伯语单词以“yaa”结尾。 |
expression.ArabicModes
expression 必需。该表达式返回“应用于”列表中的对象之一。
在本示例中,Microsoft Excel 检查阿拉伯语模式的拼写检查选项的设置,如果尚未设置该阿拉伯语模式,则将检测以“yaa”开头或以“alef hamza”结尾的单词。在运行本示例之前,拼写选项中的阿拉伯语模式选项必须可用。
Sub SpellCheck()
If Application.SpellingOptions.ArabicModes <> xlArabicBothStrict Then
Application.SpellingOptions.ArabicModes = xlArabicBothStrict
MsgBox "Spell checking for Arabic mode has been changed to a strict setting."
Else
MsgBox "Spell checking for Arabic mode is already in a strict setting."
End If
End Sub