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
Name
Type: System.StringRequired String. The file name.
Return Value
Type: Microsoft.Office.Interop.Excel.RecentFile