Find.ClearAllFuzzyOptions method (Word)
Clears all nonspecific search options associated with Japanese text.
Syntax
expression. ClearAllFuzzyOptions
expression Required. A variable that represents a 'Find' object.
Remarks
This method sets the following properties to False :
MatchFuzzyAY | MatchFuzzyKanji |
---|---|
MatchFuzzyByte | MatchFuzzyOldKana |
MatchFuzzyCase | MatchFuzzyProlongedSoundMark |
MatchFuzzyDash | MatchFuzzyPunctuation |
MatchFuzzyDZ | MatchFuzzySmallKana |
MatchFuzzyHF | MatchFuzzySpace |
MatchFuzzyHiragana | MatchFuzzyTC |
MatchFuzzyIterationMark | MatchFuzzyZJ |
Example
This example clears all nonspecific search options before executing a search in the selected range. If the word "バイオリン" 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:="バイオリン", Format:=True, Forward:=True
If .Found = True Then
.Parent.Expand Unit:=wdParagraph
.Parent.Copy
End If
End With
See also
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for