MatchAllWordForms Property

Applies To

FileSearch object.

Description

True if the specified file search will be expanded to include all forms of the specified word in the body of the file, or in the file's properties. Read/write Boolean.

Remarks

This property is available only if the file Mswds_en.lex has been installed and registered. Note that this file isn't installed as part of a Typical setup.

See Also

MatchCase property, MatchTextExactly property, NewSearch method.

Example

This example returns all files that contain the word "run," "running," "runs," or "ran" in the body of the file, or in the file properties. The TextOrProperty property sets the word to be matched, and limits the search to either the body of the file or the file properties.

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