全部显示

ArabicModes 属性

       

返回或设置阿拉伯语拼写检查的模式。XlArabicModes 类型,可读写。

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