ClearAllFuzzyOptions Method

Microsoft Word Visual Basic

ClearAllFuzzyOptions Method

       

Clears all nonspecific search options associated with Japanese text.

expression.ClearAllFuzzyOptions

expression   Required. An expression that returns a Find object.

Remarks

This method sets the following properties to False:

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

Example

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

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