ArabicModes Property

Microsoft Excel Visual Basic

XlArabicModes can be one of these XlArabicModes constants.
xlArabicNone The spelling checker ignores spelling rules regarding either Arabic words ending with the letter yaa or Arabic words beginning with an alef hamza.
xlArabicBothStrict The spelling checker uses spelling rules regarding both Arabic words ending with the letter yaa and Arabic words beginning with an alef hamza.
xlArabicStrictAlefHamza The spelling checker uses spelling rules regarding Arabic words beginning with an alef hamza.
xlArabicStrictFinalYaa The spelling checker uses spelling rules regarding Arabic words ending with the letter yaa.

expression.ArabicModes

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

In this example, Microsoft Excel checks the setting for the spell checking option for Arabic mode and sets it to check for words ending with the letter yaa and words beginning with an alef hamza, if the Arabic mode is not set to this already. Before running this code example, the Arabic modes option must be enabled in the spelling options.

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