Add Method (RecentFiles Collection) Example

This example adds the active document to the list of recently used files.

If ActiveDocument.Saved = True Then
    RecentFiles.Add Document:=ActiveDocument.Name
End If