SpellingOptions.ArabicModes Property (Excel)

Returns or sets the mode for the Arabic spelling checker. Read/write XlArabicModes.

Syntax

expression .ArabicModes

expression A variable that represents a SpellingOptions object.

Remarks

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.

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

See Also

Concepts

SpellingOptions Object Members

SpellingOptions Object