ApplicationSettings.RecentFilesListSize property (Visio)
Determines the number of entries in the Recent Documents list in the Microsoft Visio user interface. Read/write.
Syntax
expression.RecentFilesListSize
expression A variable that represents an ApplicationSettings object.
Return value
Long
Remarks
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.
Example
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
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.