Connections.AddFromFile2(String, Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.