Bewerken

Delen via


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 

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.