RecentFiles.Maximum property (Word)

Returns or sets the maximum number of recently used files that can appear on the File menu. Can be a number from 0 (zero) through 9. Read/write Long.



expression Required. A variable that represents a 'RecentFiles' collection.


This example disables the list of most recently used files.

RecentFiles.Maximum = 0

This example increases the number of items on the list of most recently used files by 1.

num = RecentFiles.Maximum 
If num <> 9 Then RecentFiles.Maximum = num + 1

See also

RecentFiles Collection Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.