FindReplace.MatchAlefHamza property (Publisher)

Sets or returns a Boolean representing whether or not a search operation will match alefs and hamzas. Read/write.

Syntax

expression.MatchAlefHamza

expression A variable that represents a FindReplace object.

Return value

Boolean

Remarks

This property may not be available depending on the language enabled on your operating system. The default value is False.

Returns Access denied if Arabic is not enabled.

Example

This example finds the first occurrence of the word "" in an Arabic document matching alefs and hamzas.

Dim objDocument As Document 
 
Set objDocument = ActiveDocument 
With objDocument.Find 
 .Clear 
 .FindText = "" 
 .MatchAlefHamza = True 
 .Execute 
End With 


This example follows from the previous one except that alef hamzas will not be matched. Therefore the words "" or "" will both be found because alefs and hamzas will be ignored.

Dim objDocument As Document 
 
Set objDocument = ActiveDocument 
With objDocument.Find 
 .Clear 
 .FindText = "" 
 .MatchAlefHamza = False 
 .Execute 
End With 

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.