WorkbookConnection.Delete Method
Deletes a workbook connection.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Sub Delete
'Usage
Dim instance As WorkbookConnection
instance.Delete()
void Delete()
Remarks
Use this method to delete an external data connection. This method does not apply to links to other workbooks.
Deleting a connection will not delete or remove any objects that were using that connection. Deleting a connection will not cause any of the connection files to be deleted from the file system. If you edit any of those objects to use another connection, everything will start working again.
Objects that use a deleted connection behave as if the connection could not be established.