Share via


IConnections.AddFromFile Method

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

Syntax

'Declaration
Function AddFromFile ( _
    Filename As String _
) As WorkbookConnection
'Usage
Dim instance As IConnections
Dim Filename As String
Dim returnValue As WorkbookConnection

returnValue = instance.AddFromFile(Filename)
WorkbookConnection AddFromFile(
    string Filename
)

Parameters

Return Value

Type: Microsoft.Office.Interop.Excel.WorkbookConnection

See Also

Reference

IConnections Interface

IConnections Members

Microsoft.Office.Interop.Excel Namespace