Compartilhar via


Connections.AddFromFile Method

Adds a connection from the specified file.

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 Connections
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
WorkbookConnection

See Also

Reference

Connections Interface

Connections Members

Microsoft.Office.Interop.Excel Namespace