SetAllFuzzyOptions Method

Microsoft Word Visual Basic

expression.SetAllFuzzyOptions

expression     Required. An expression that returns a Find object.

Remarks

This method sets the following properties to True:

MatchFuzzyAYMatchFuzzyBV
MatchFuzzyByte
MatchFuzzyCase
MatchFuzzyDash
MatchFuzzyDZ
MatchFuzzyHF
MatchFuzzyHiragana
MatchFuzzyIterationMark
MatchFuzzyKanji
MatchFuzzyKiKu
MatchFuzzyOldKana
MatchFuzzyProlongedSoundMark
MatchFuzzyPunctuation
MatchFuzzySmallKana
MatchFuzzySpace
MatchFuzzyTC
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.

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