Export (0) Print
Expand All
Expand Minimize

ApplicationSettings.RecentTemplatesListSize Property (Visio)

Published: July 16, 2012

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

Version Added: Visio 2010

expression .RecentTemplatesListSize

expression A variable that represents an ApplicationSettings object.

Return Value

Long

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 

Community Additions

ADD
Show:
© 2014 Microsoft