RecentFilesListSize Property [Visio 2003 SDK Documentation]
Determines the number of entries in the list of recently used files at the bottom of the File menu in Microsoft Office Visio 2003.
longRet = object.RecentFilesListSize
object.RecentFilesListSize = longVal
longRet Long. Current number of entries in the recently used file list.
object Required. An expression that returns an ApplicationSettings object.
longVal Required Long. New number of entries in the recently used file list.
Version added
2003
Remarks
Setting the RecentFilesListSize property is equivalent to setting the Recently used file list option on the General tab of the Options dialog box (Tools menu).
Maximum size of the recently used file list is 9 entries. Setting the RecentFilesListSize property to more than 9 entries does not display more than 9 files on the File menu.
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 RecentFileListSize_Example()
Dim vsoApplicationSettings As Visio.ApplicationSettings
Dim lngListSize As Long
Set vsoApplicationSettings = Visio.Application.Settings
lngListSize = vsoApplicationSettings.RecentFilesListSize
Debug.Print lngListSize
End Sub
Applies to | ApplicationSettings object
See Also | Application object | Settings property