Find.SetAllFuzzyOptions Method

Word Developer Reference

Activates all nonspecific search options associated with Japanese text.

Syntax

expression.SetAllFuzzyOptions

expression   Required. A variable that represents a Find object.

Remarks

This method sets the following properties to True:

MatchFuzzyAY MatchFuzzyKanji
MatchFuzzyBV MatchFuzzyKiKu
MatchFuzzyByte MatchFuzzyOldKana
MatchFuzzyCase MatchFuzzyProlongedSoundMark
MatchFuzzyDash MatchFuzzyPunctuation
MatchFuzzyDZ MatchFuzzySmallKana
MatchFuzzyHF MatchFuzzySpace
MatchFuzzyHiragana MatchFuzzyTC
MatchFuzzyIterationMark MatchFuzzyZJ

Example

This example activates all nonspecific options before executing a search in the selected range. If the word "baiorinbaiorinbaiorinbaiorinbaiorin" is formatted as bold, the entire paragraph is selected and copied to the Clipboard.

Visual Basic for Applications
  With Selection.Find
    .ClearFormatting
    .SetAllFuzzyOptions
    .Font.Bold = True
    .Execute FindText:="baiorinbaiorinbaiorinbaiorinbaiorin", Format:=True, Forward:=True
    If .Found = True Then
        .Parent.Expand Unit:=wdParagraph
        .Parent.Copy
    End If
End With

See Also