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
Filename
Type: System.StringName of the file.
Return Value
Type: Microsoft.Office.Interop.Excel.WorkbookConnection
WorkbookConnection