Bewerken

Delen via


Connections.AddFromFile2(String, Object, Object) Method

Definition

Adds a connection from the specified file.

public Microsoft.Office.Interop.Excel.WorkbookConnection AddFromFile2 (string Filename, object CreateModelConnection, object ImportRelationships);
Public Function AddFromFile2 (Filename As String, Optional CreateModelConnection As Object, Optional ImportRelationships As Object) As WorkbookConnection

Parameters

Filename
String

Name of the file.

CreateModelConnection
Object

Specifies whether to create the connection to the model.

ImportRelationships
Object

Specifies whether to import the connection relationship.

Returns

Applies to