Application.DisplayRecentFiles Property (Word)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

True if the names of recently used files are displayed on the File menu. Read/write Boolean.

expression .DisplayRecentFiles

expression A variable that represents an Application object.

This example sets Word to display a maximum of six file names on the File menu.

Application.DisplayRecentFiles = True 
RecentFiles.Maximum = 6

This example removes the list of recently used files from the File menu.

Application.DisplayRecentFiles = False