Share via


MatchDiacritics Property [Publisher 2003 VBA Language Reference]

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

expression.MatchDiacritics

expression Required. An expression that returns a FindReplace object.

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

Applies to | FindReplace Object