Share via


RecentFiles.Add Method

Adds a file to the list of recently used files. Returns a RecentFile object.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function Add ( _
    Name As String _
) As RecentFile
'Usage
Dim instance As RecentFiles
Dim Name As String
Dim returnValue As RecentFile

returnValue = instance.Add(Name)
RecentFile Add(
    string Name
)

Parameters

Return Value

Type: Microsoft.Office.Interop.Excel.RecentFile

See Also

Reference

RecentFiles Interface

RecentFiles Members

Microsoft.Office.Interop.Excel Namespace