MatchAllWordForms 属性

       

本主题中的某些内容可能不适用于某些语言。

如果文件查找范围扩展到在文件正文或文件属性中出现的指定单词的所有形式,则返回 TrueBoolean 类型,可读写。

说明

该属性只有在安装并注册文件“Mswds_en.lex”后才有效。注意:在“典型”安装过程中不会安装该文件。

示例

本示例可实现的功能为:返回所有在文件正文或文件属性中包含单词“run”、“running”、“runs”或“ran”的文件。TextOrProperty 属性设置需匹配的单词,并将查找范围限制在文件正文或文件属性中。

With Application.FileSearch
    .NewSearch
    .LookIn = "C:\My Documents"
    .SearchSubFolders = True
    .TextOrProperty = "run"
    .MatchAllWordForms = True
    .FileType = msoFileTypeAllFiles
End With