ApplicationSettings.RecentTemplatesListSize Property (Visio)

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


expression. RecentTemplatesListSize

expression A variable that represents an 'ApplicationSettings' object.

Return value



The value of the RecentTemplatesListSize property corresponds to the setting of the Show this number of Recent Templates box under Display on the Advanced tab of the Visio Options dialog box. To open the Visio Options dialog box, click the File tab, click Options, and then click Advanced. The maximum number of recently used templates that can be displayed is 12.


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

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