MatchAllWordForms 属性

       

如果为 True,则在查找操作需查找文本的所有形式(例如,如果要查找的单词是“sit”,那么也查找“sat”和“sitting”)。Boolean 类型,可读写。

expression.MatchAllWordForms

expression  必需。该表达式返回一个 Find 对象。

说明

使用 Find 对象的 Text 属性或 Execute 方法的 FindText 参数来指定要在文档中搜索的文本。

示例

本示例在所选内容中查找单词“sit”的各种形式,然后加以选定。如果没有找到任何形式的“sit”,则显示一个消息框。

With Selection.Find
    .MatchAllWordForms = True
    .Text = "sit"
    .Execute Format:=False
    If .Found = False Then MsgBox "Not Found"
End With