title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
ApplicationSettings.RecentFilesListSize property (Visio) |
vis_sdr.chm16251680 |
|
|
8057f3d5-ccaf-28a2-9e70-1844f858d51d |
06/08/2017 |
medium |
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.
Long
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
[!includeSupport and feedback]