Syntax

expression.LastModified

expression A variable that represents a FileSearch object.

Example
This example sets options for a file search. The files this search returns were modified yesterday and are located in the C:\My Documents folder or in one of its subfolders.

Visual Basic for Applications
Set fs = Application.FileSearch With fs .LookIn = "C:\My Documents" .SearchSubFolders = True .LastModified = msoLastModifiedYesterday End With

See also: