MatchDiacritics Property

Microsoft Publisher Visual Basic

MatchDiacritics Property

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