Compartilhar via


RecentFiles.Maximum Property

Word Developer Reference

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.

Syntax

expression.Maximum

expression   Required. A variable that represents a RecentFiles collection.

Example

This example disables the list of most recently used files.

Visual Basic for Applications
  RecentFiles.Maximum = 0

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

Visual Basic for Applications
  num = RecentFiles.Maximum
If num <> 9 Then RecentFiles.Maximum = num + 1

See Also