OLEDBConnection.MakeConnection Method
Establishes a connection for the specified OLE DB connection.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Sub MakeConnection
'Usage
Dim instance As OLEDBConnection
instance.MakeConnection()
void MakeConnection()
Remarks
The MakeConnection() method can be used when a connection drops and the user wants to reestablish the connection.
Various objects and methods might return a run-time error if the connection is dropped. Use of this method assures a connection before executing other objects or methods.
This method will result in a run-time error if the MaintainConnection property of the specified OLE DB connection has been set to False.