Table of contents
Collapse the table of content
Expand the table of content

ApplicationSettings.RecentFilesListSize Property (Visio)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

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
© 2018 Microsoft