This documentation is archived and is not being maintained.

Workbook.EnableConnections Method (2007 System)

Enables data connections within the workbook.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

public void EnableConnections()

The following code example calls the EnableConnections method to enable data connections in the workbook and suppress any security warnings for existing data connections.

This example is for a document-level customization.

private void EnableWorkbookConnections()
{
    this.EnableConnections();
}

Show: