Skip to content

Latest commit

 

History

History
55 lines (32 loc) · 1.63 KB

Visio.ApplicationSettings.RecentFilesListSize.md

File metadata and controls

55 lines (32 loc) · 1.63 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
ApplicationSettings.RecentFilesListSize property (Visio)
vis_sdr.chm16251680
vis_sdr.chm16251680
Visio.ApplicationSettings.RecentFilesListSize
8057f3d5-ccaf-28a2-9e70-1844f858d51d
06/08/2017
medium

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

[!includeSupport and feedback]