ApplicationSettings.RecentFilesListSize Property (Visio)

Office 2013 and later

Contribute to this content

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

Determines the number of entries in the Recent Documents list in the Microsoft Visio user interface. Read/write.

expression .RecentFilesListSize

expression A variable that represents an ApplicationSettings object.

Return Value


Setting the RecentFilesListSize property is equivalent to setting the Show this number of Recent Documents box under Display on the Advanced tab of the Visio Options dialog box (click the File tab, click Options, and then click Advanced). the maximum setting is 12.

The following Microsoft Visual Basic for Applications (VBA) macro shows how to use the RecentFilesListSize property to print the current size of the recently used file list in the Immediate window. It also shows how to get an ApplicationSettings object from the Visio Application object.

Public Sub RecentFilesListSize_Example() 
    Dim vsoApplicationSettings As Visio.ApplicationSettings 
    Dim lngListSize As Long 
    Set vsoApplicationSettings = Visio.Application.Settings 
    lngListSize = vsoApplicationSettings.RecentFilesListSize 
    Debug.Print lngListSize 
End Sub