FindReplace.MatchDiacritics Property (Publisher)

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

Syntax

expression .MatchDiacritics

expression A variable that represents a FindReplace object.

Return Value

Boolean

Remarks

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

Returns Access denied if a proper language, such as Arabic, is not enabled.

Example

This example finds the first occurrence of the word "gegenüber" in a German document.

Dim objDocument As Document 
 
Set objDocument = ActiveDocument 
With objDocument.Find 
 .Clear 
 .FindText = "gegenüber" 
 .MatchDiacritics = True 
 .Execute 
End With